PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Date and Time » Date » Bug #5420

Sets the default timezone to UTC instead of CEST

Details

Submitted2005-09-15 19:42 UTC
Fromo dot persson at gmail dot com
Assignedpajoye
StatusClosed
PackageDate
PHP Version5.1.0
OSDebian 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",