|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-26 01:30 UTC] judas dot iscariote at gmail dot com
[2006-02-28 18:07 UTC] bjori@php.net
[2006-02-28 18:12 UTC] tehughes at wisc dot edu
[2006-02-28 18:36 UTC] derick@php.net
[2006-03-08 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 08:00:02 2025 UTC |
Description: ------------ date("g",x) where x is some int literal will print out different things depending on when I load it, either 2 hours before or after the actual time. Reproduce code: --------------- echo "[[" . date("g:ia",39600) . "]]"; Expected result: ---------------- At this point I'm actually not sure what the correct time is. PHP gives me 4:00am or 6:00am depending on the page load. I have no idea what could be causing this. Actual result: -------------- [[6:00am]] -- next page load -- [[4:00am]] -- next page load -- [[4:00am]]