Projects ⇒ Bugs ⇒ #849: Recent change messes up timezone reporting ⇒ CPG Dragonfly™ CMS
Bug #849 Recent change messes up timezone reporting
Project: Dragonfly 9.0.3 -> 9.3 Category: Administration
Submitted: Monday, October 09, 2006 (16:41:23) Modified: Monday, October 09, 2006 (22:15:18)
Status: Closed Assigned to:
PHP Version: Irrelevant HTTPD Server: Apache 1.3

View/Vote Add Comment

by: Beldak
On 6 Oct, a recent commit to CVS updated to include a timezone fix. After updating this file (using PHP 5.1.2), all posts on ForumsPro were off by the amount of the timezone.

As in if a user posts at 9am local time (GMT-8), the post was recorded in the DB as 1am local. Rolling back to the previous version solved this problem for new posts (posts made during this version are of course still showing the incorrect time since thats what was recoded into the DB).

Recommend a rollback until more testing with PHP versions is done.

Reproduce code:
@@ -532,7 +533,7 @@
# Time Formatting
function gmtime() {
static $time;
- if (!$time) { $time = (time() - date('Z')); }
+ if (!$time) { $time = time(); }
return $time;

Actual result:
The date('Z') was removed but that ended up messing up gmtime functions by the timezone amount.
by: NanoCaiordo
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make Dragonfly 9.0.3 -> 9.1 better.
User Info

Welcome Anonymous


Support for DragonflyCMS in a other languages: