ID:               19446
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Verified
 Bug Type:         Date/time related
 Operating System: Linux
 PHP Version:      4.2.1
 New Comment:

Confirmed. Also happens to newfoundland. Seems to be all fractional
offsets as stated:

<?php
putenv('TZ=Canada/Newfoundland');
print date('h:i:sa d/m/Y O T') ."<br />\n";
putenv('TZ=Canada/Eastern');
print date('h:i:sa d/m/Y O T') ."<br />\n";
?>
output:
12:55:52pm 18/09/2002 -021800 NDT
11:25:52am 18/09/2002 -0400 EDT

NOTE: Time is correct. Offset is incorrect.

S



Previous Comments:
------------------------------------------------------------------------

[2002-09-16 21:30:51] [EMAIL PROTECTED]

Also occurs on other timezones that are not complete hours.
EG:
The Zones, Asia/Riyadh87, Asia/Riyadh88, Asia/Riyadh89 are the same and
suppose to be +0345. But I get +03424. Also the Abreviation is reported
as ?? I expected this to actually be either an actual abreviation.

------------------------------------------------------------------------

[2002-09-16 21:00:53] [EMAIL PROTECTED]

I used this code to change timezones:

<?php
putenv('TZ=Asia/Calcutta');
print date('h:i:sa d/m/Y O T');
?>

Asia/Calcutta has an offset of +0530 GMT or 5.5 hours ahead of GMT.

It reported the O date value as +051800 I expected it to be +0530 or
+053000

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19446&edit=1

Reply via email to