I tried using the Timesince plugin with the {edit_date} variable, and got crazily negative results. After verifying that it did work correctly for {entry_date}, I did a little looking in the database. {edit_date} is stored in the database in a totally different format from the other dates, so that plugin isn’t going to work without a lot of reworking.
Am I missing something? Any suggestions?
Thanks
Moved to Plugins: Discussion and Questions by Moderator
OK, so I hacked together a version of the Timesince plugin that takes an ‘edit_date’ parameter, and if it’s set to “yes”, runs the date through $LOC->timestamp_to_gmt() before processing.
This seems rather ugly, but I can’t figure out any good way to figure out whether or not to do that based solely on the input, except perhaps to choose to do it heuristically based on the length of the input data.
Any thoughts?
The documentation link in the Timesince plugin leads to a 404 page; I’m guessing this isn’t supported any more. Any suggestions on what to do with an updated plugin? Create my own ‘Timesince2’ and post that?
That plugin was created awhile ago, the author may have moved on. You can redistribute it only i the licensing allows - you can check the PHP file for the type of licensing.
Otherwise, you’ll just need to re-code it or use it on your own sites and not distribute the changes. =)
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.