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?
Wrong time used in serendipity_event_entrylastmodified
-
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
Hi!
Could you try this fix:
Edit your serendipity_event_entrylastmodified.php file. Search for the two occurences:
and replace those to:
Note the added 'false' string which indicates that no time slicing shall be performed.
HTH,
Garvin
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'])
Code: Select all
serendipity_formatTime(DATE_FORMAT_SHORT, $eventData[$i]['last_modified'], false)
serendipity_formatTime(DATE_FORMAT_SHORT, $eventData[0]['last_modified'], false)
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/
Hi Garvin,garvinhicking wrote: But I would need feeedback from a user, because I myself currently can't test the fix on my own setup.
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.