Home » Date and Time » Date » Bug #5420
Sets the default timezone to UTC instead of CEST
Details
| Submitted | 2005-09-15 19:42 UTC |
|---|---|
| From | o dot persson at gmail dot com |
| Assigned | pajoye |
| Status | Closed |
| Package | Date |
| PHP Version | 5.1.0 |
| OS | Debian GNU/Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-09-15 19:42 UTC] o dot persson at gmail dot com
Description:
------------
date('T') returns CEST in my system, and the $_DATE_TIMEZONE_DATA array doesn't define it (it has CET tho).
Test script:
---------------
One fix to this this manually. This is what I use tho.
Index: ../components/PEAR/Date/TimeZone.php
===================================================================
--- ../components/PEAR/Date/TimeZone.php (revision 204)
+++ ../components/PEAR/Date/TimeZone.php (working copy)
@@ -2074,6 +2074,13 @@
'hasdst' => true,
'dstlongname' => "Central European Summer Time",
'dstshortname' => 'CEST' ),
+ 'CEST' => array(
+ 'offset' => 3600000,
+ 'longname' => "Central European Time",
+ 'shortname' => 'CET',
+ 'hasdst' => true,
+ 'dstlongname' => "Central European Summer Time",
+ 'dstshortname' => 'CEST' ),
'ECT' => array(
'offset' => 3600000,
'longname' => "Central European Time",