|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-06 11:16 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 15:00:01 2025 UTC |
Description: ------------ date() doesn't account for daylights savings & am/pm returns incorrectly. The date("I") returns 0 even though it should return 1. Here is system info produced by phpinfo(): :Linux p3slh166.shr.phx3.secureserver.net 2.4.21-53.ELsmp #1 SMP Wed Nov 14 03:54:12 EST 2007 i686 The server is not dedicated. Would appreciate any help you could give! Reproduce code: --------------- date("Y-m-d h:i a); //returns am times as pm and is 1 hour ahead.