Wrong time used in serendipity_event_entrylastmodified

Found a bug? Tell us!!
Post Reply
urmelchen
Regular
Posts: 27
Joined: Thu Jul 27, 2006 9:15 pm
Contact:

Wrong time used in serendipity_event_entrylastmodified

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Wrong time used in serendipity_event_entrylastmodified

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
urmelchen
Regular
Posts: 27
Joined: Thu Jul 27, 2006 9:15 pm
Contact:

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
urmelchen
Regular
Posts: 27
Joined: Thu Jul 27, 2006 9:15 pm
Contact:

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
urmelchen
Regular
Posts: 27
Joined: Thu Jul 27, 2006 9:15 pm
Contact:

Post 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 :cry:

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.
Post Reply