|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-27 20:30 UTC] jani@php.net
[2009-05-05 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Description: ------------ echo date(O)."\n"; echo date(T); returns "-0400 EDT" while bash returns xingu ~ # date Mon Mar 16 12:44:40 EST 2009 and xingu ~ # date -u Mon Mar 16 17:45:56 UTC 2009 and system is set to CLOCK="UTC" TIMEZONE="America/Panama" Reproduce code: --------------- echo date(O); echo date(T); Expected result: ---------------- return "-0500 EST" (same as system output) N.B.: countries in the tropics have no need for daylight savings time. Actual result: -------------- "-0400 EDT"