Update of /cvsroot/php-blog/serendipity/include/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26749/include/admin
Modified Files:
entries.inc.php
Log Message:
fix server time zone offset things, thanks to Kaustubh for reporting!
We actually store the server time in the entries, so we don't need to add offsets when fetching them later from the DB for all those 'future Entries' checks.
Index: entries.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/admin/entries.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- entries.inc.php 27 Nov 2004 22:14:15 -0000 1.6
+++ entries.inc.php 3 Dec 2004 12:02:27 -0000 1.7
@@ -277,8 +277,9 @@
}
}
+ // Save server timezone in database always, so substract the offset we added for display; otherwise it would be added time and again
if (!empty($entry['timestamp'])) {
- $entry['timestamp'] = serendipity_serverOffsetHour($entry['timestamp'], true); // Save server timezone in database always, so substract the offset we added for display; otherwise it would be added time and again
+ $entry['timestamp'] = serendipity_serverOffsetHour($entry['timestamp'], true);
}
if ($serendipity['POST']['quicksave'] == 'true') {
|