HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

change date

This discussion is related to the Last Edited addon.

I am using Last Edit plugin and it shows me the date like this: 2014-01-08 14:56:47
I thought it was listening to my locale.php where i put the date to be shown like this: %A %e %B %H:%M
How can i change this?

Tagged:

Comments

  • peregrineperegrine MVP
    edited January 2014

    edited out.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    NooLiffe
  • hgtonighthgtonight ∞ · New Moderator

    You will have to modify line 64. I can help you if you sharing what locale definition you expect it to use.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

    NooLiffejackmaessen
  • thank you very much :)

  • jackmaessenjackmaessen ✭✭✭
    edited January 2014

    Well i found the solution.
    In the plugin, there is a file called: class.lastedited.plugin.php
    In this file, the date is parsed with this line of code:

    'Date'      => Gdn_Format::ToDateTime(Gdn_Format::ToTimestamp($Data->DateUpdated)),
    

    I changed "ToDateTime" with "Date" and now it is being showed correctly.

    hgtonight
Sign In or Register to comment.