PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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)