Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_recententries
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26749/plugins/serendipity_plugin_recententries
Modified Files:
serendipity_plugin_recententries.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: serendipity_plugin_recententries.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- serendipity_plugin_recententries.php 2 Dec 2004 10:55:08 -0000 1.12
+++ serendipity_plugin_recententries.php 3 Dec 2004 12:02:28 -0000 1.13
@@ -149,7 +149,7 @@
timestamp
FROM {$serendipity['dbPrefix']}entries
$sql_join
- WHERE isdraft = 'false' AND timestamp <= " . serendipity_serverOffsetHour(time(), true) . "
+ WHERE isdraft = 'false' AND timestamp <= " . time() . "
$sql_where
ORDER BY timestamp DESC
LIMIT $sql_number";
|