Page 1 of 1
Wrong time used in serendipity_event_entrylastmodified
Posted: Thu Jul 27, 2006 9:25 pm
by urmelchen
If you install the plugin serendipity_event_entrylastmodified (installed version 1.4) they will show the wrong time of the last modified entry. For example i wrote an entry on 20:07 and modify this entry on 20:46 serendipity_event_entrylastmodified will show the following (translated from german) Last modified on 27.07.2006 18:46 insteed of Last modified on 27.07.2006 20:46.
Inside the Serendipity i've defined a time difference from "-2". If i set this to "0", the serendipity_event_entrylastmodified will show the correct time (20:46), but the creation time is wrong (now 22:07, insteed of 20:07). Whats wrong and how can i solve the problem?
Re: Wrong time used in serendipity_event_entrylastmodified
Posted: Fri Jul 28, 2006 1:10 pm
by garvinhicking
Hi!
Could you try this fix:
Edit your serendipity_event_entrylastmodified.php file. Search for the two occurences:
Code: Select all
serendipity_formatTime(DATE_FORMAT_SHORT, $eventData[$i]['last_modified'])
serendipity_formatTime(DATE_FORMAT_SHORT, $eventData[0]['last_modified'])
and replace those to:
Code: Select all
serendipity_formatTime(DATE_FORMAT_SHORT, $eventData[$i]['last_modified'], false)
serendipity_formatTime(DATE_FORMAT_SHORT, $eventData[0]['last_modified'], false)
Note the added 'false' string which indicates that no time slicing shall be performed.
HTH,
Garvin
Posted: Mon Jul 31, 2006 12:07 am
by urmelchen
Sorry, i don't have access to this file. I will email the server admin your fix. I hope you will publish a updated version from the plugin to?
Posted: Mon Jul 31, 2006 2:10 pm
by garvinhicking
Hi!
Yes, if this will fix the problem for you I will commit the fix to the repository!
(You might want to try the fixperm.php script as mentioned on the s9y.org FAQ to try to make the mentioned files writable for your FTP user? Also check the spartacus plugin config to set permissions differently...)
Best regards,
Garvin
Posted: Wed Aug 02, 2006 11:14 pm
by urmelchen
Sorry Garvin, but i don't know when my server admin is replying to my mail. So better you don't wait too long for an reaction from my site, because this could delay the fix for any other user of this plugin.
Posted: Thu Aug 03, 2006 2:56 pm
by garvinhicking
Hi!
But I would need feeedback from a user, because I myself currently can't test the fix on my own setup.
Best regards,
Garvin
Posted: Mon Aug 07, 2006 7:13 pm
by urmelchen
garvinhicking wrote:
But I would need feeedback from a user, because I myself currently can't test the fix on my own setup.

Hi Garvin,
yeap i understand your statement and hope another user can confirm that this patch works. My server admin is busy right now and actualy don't have time to apply this patch manualy
He is offering the service for free and at the moment busy in developing for (K)Ubuntu, and at the moment there is no other server admin.
I realy hope someone can confirm this patch.
TIA and realy thanks for you're quick work Garvin.