Nucleus Core

Login!
Register as a new userLost password?

for Project:

This is the tracker for the Core of the Nucleus CMS-project (Nucleus CMS Website)

FS#42 — formatDate not considering local time

Attached to Project— Nucleus Core
Opened by Edmond Hui (ehui) - Thursday, 31 March 2005, 05:09PM
Last edited by Wouter Demuynck (karma) - Sunday, 21 August 2005, 08:11PM
Bug
Functionality
CLOSED
Wouter Demuynck
All
High
High
3.2
3.22
Undecided
100%
time zone problem when server and blogger not in the same timezone:

formatDate function in globalfunctions.php format date
and time by PHP's date function. But some options of
date function assume timezone is same as the server.

see http://forum.nucleuscms.org/viewtopic.php?p=17238#17238
This task depends upon

View Dependency Graph
 
This task blocks these from closing
FS#31 - 3.3 metaticket
Closed by  Wouter Demuynck (karma)
Date:  Sunday, 21 August 2005, 08:12PM
Reason for closing:  Fixed
Additional comments about closing:  Fix is in 3.22
Comment by Wouter Demuynck (karma) - Tuesday, 26 July 2005, 06:17PM

Note:

The formatDate function is used by <%date%> in item/comment variables


Comment by Wouter Demuynck (karma) - Tuesday, 26 July 2005, 06:46PM

I compared the different time variables defore and after applying the patch from Andy:

Before applying patch:

* Sun, 22 May 2005 19:26:51 +0200
* Sun, 22 May 2005 17:26:51 +0000
* 2005-05-22T17:26:51Z
* 2005-05-22T17:26:51+02:00

After applying patch:

* Sun, 22 May 05 19:26:51 +0200
* Sun, 22 May 05 17:26:51 GMT
* 2005-05-22T17:26:51Z
* 2005-05-22T19:26:51+02:00

Which is correct.

The patch is now in CVS and is slightly different from the one submitted to the forum, in that the $blog object is passes as a function parameter (otherwise scenarios with [%otherblog%] would still be incorrectly handled).