#19446 [NEW]: Incorrect Offset Reported
| From: | eangulus at hotmail dot com | Date: | Tue, 17 Sep 2002 02:00:53 +0000 |
| Subject: | #19446 [NEW]: Incorrect Offset Reported | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-19506@lists.php.net to get a copy of this message | ||
From: eangulus@hotmail.com
Operating system: Linux
PHP version: 4.2.1
PHP Bug Type: Date/time related
Bug description: Incorrect Offset Reported
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 bug report at http://bugs.php.net/?id=19446&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19446&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19446&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19446&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19446&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19446&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19446&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19446&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19446&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19446&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19446&r=globals