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

Date_Span resets Timezone

Details

Submitted2006-01-07 11:29 UTC
Fromlokari at gmx dot biz
Assignedpajoye
StatusClosed
PackageDate
PHP Version5.1.1
OSLinux (Debian 3.1)
Roadmaps(Not assigned)

Comments

[2006-01-07 11:29 UTC] lokari at gmx dot biz

Description:
------------
When setting a timezone for a DATE-Object, timezone is correctly set. After Using Date_Span with this object, the timezone for the object is resettet to UTC and needs to be reset.

Test script:
---------------
$dateone->new Date();
$dateone->setTZbyID("UTC");
$dateone->convertTZbyID("Europe/Berlin");
$span = new Date_Span($dateone,$datetwo);

print_r($dateone->tz)