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 #1189

date('T') in the UK during summer-time gives 'BST'

Details

Submitted2004-04-12 22:11 UTC
Fromuklinux at modem-help dot com
Assignedpajoye
StatusBogus
PackageDate
PHP Version4.2.2
OSRed Hat Linux
Roadmaps(Not assigned)

Comments

[2004-04-12 22:11 UTC] uklinux at modem-help dot com

Description:
------------
date('T') in the UK during Summer-Time gives 'BST', which results in dates being set to 'Bangladesh Time' if $_DATE_TIMEZONE_DEFAULT is not preset.

This clearly needs to be added to the documentation.

Reproduce code:
---------------
require 'Date.php';
$today=new Date;

Expected result:
----------------
$today to have a GMT+1 date/time.

Actual result:
--------------
$today has 'Bangladesh Time'.

[2004-05-20 15:48 UTC] pierre at dotgeek dot org

Thank you for taking the time to report a problem with the package.
Unfortunately you are not using a current version of the package --
the problem might already be fixed. Please download a new
version from http://pear.php.net/packages.php

If you are able to reproduce the bug with one of the latest
versions, please change the package version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PEAR.

Hello,

Please try the latest release. I fixed a double entry in the TZ definition, which fallen in Bangladesh TZ.

--Pierre