|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-03-10 06:01 UTC] space at arch dot ch
c'mon guys. this is a real pain: on windows systems gmmktime returns bogus. the bug has been known for at least 2 years! it's been reported more than once! will this finally be fixed or not??? there have been other bug reports, but all of them seem to have been ignored so far, although this is NOT some minor issue! at least include a documentation of the bug in the php manual for gmmktime if you do not intend to fix it! [..saying that the function cannot be used on win platforms] :(( as seen in other posts. try: gmmktime(0,0,0,1,1,1970); which should return 0 but does not [unless you are in GMT]!!! PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 10 16:00:02 2025 UTC |
GMDATE() Workaround for Microsoft Server: Use the following gmstrftime() verus gmdate() to calculate elapsed time. To return amount of time on online: $time_online = time(); ex: 1087064037 (06/20/2004 13:13:57) gmstrftime('%H:%M:%S',$time_online)