Home » Date and Time » Date » Bug #6435
Date_Span resets Timezone
Details
| Submitted | 2006-01-07 11:29 UTC |
|---|---|
| From | lokari at gmx dot biz |
| Assigned | pajoye |
| Status | Closed |
| Package | Date |
| PHP Version | 5.1.1 |
| OS | Linux (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)