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
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 | |
|
|
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
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
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
Note:
The formatDate function is used by <%date%> in item/comment variables
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).