Support » Plugin: Memphis Documents Library » Memphis Last Updated Widget – Date Format

  • Resolved louisewattis

    (@louisewattis)


    Hi

    I am running the latest version of your plugin on a corporate intranet, which is generally working very well for me.

    I am using the Memphis Last Updated widget on my theme and noticed that the date format is mm/dd/yy – could you please advise how I change this to dd/mm/yy?

    Many thanks

    Louise.

    https://wordpress.org/plugins/memphis-documents-library/

Viewing 6 replies - 1 through 6 (of 6 total)
  • chisss

    (@chisss)

    Hi Louise,

    I had posted this here:
    https://wordpress.org/support/topic/date-format-57?replies=5

    Hope that helps!

    Plugin Author bhaldie

    (@bhaldie)

    Thanks chisss that should do the trick,

    The new release of mDocs will have the ability to change the dates to how every you like, but for now this will work 🙂

    Thread Starter louisewattis

    (@louisewattis)

    Hi

    Thanks for the pointers. I have just looked at the mdocs-file-info-small.php file on my WordPress as you suggested and mine is already set to d-m-y.

    I am using the small version and it still shows m-d-y in the widget.

    Thanks

    Louise.

    Plugin Author bhaldie

    (@bhaldie)

    Line 9 of the mdocs-file-info-small.php will change the date to what you are looking for.

    Hope this helps:

    $last_modified = gmdate('d-m-y H:i',$the_mdoc['modified']+MDOCS_TIME_OFFSET);

    Thread Starter louisewattis

    (@louisewattis)

    I have just tried that and made the change you suggested but it then prevented me from logging into my site (or from browsing to my site).

    I have now reverted back to what it was originally and my site is back up. However, the original problem remains.

    Please see screen shot in the link below:

    https://drive.google.com/file/d/0BzbaNuJKY3LsM21FeTZvXzU0YkU/view?usp=sharing

    Plugin Author bhaldie

    (@bhaldie)

    try this code:

    $last_modified = gmdate('m-d-y H:i',$the_mdoc['modified']+MDOCS_TIME_OFFSET);

    this should in no way log you out from your site, all we are doing so modifying a date string.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Memphis Last Updated Widget – Date Format’ is closed to new replies.