note 58413 deleted from function.date by derick

From: Date: Sun, 15 Jan 2006 12:37:55 +0000
Subject: note 58413 deleted from function.date by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-101815@lists.php.net to get a copy of this message
Note Submitter: michael at bluth-company dot com ---- A possible correction on the GMT Time Magic function. When you get the Time Offset you just got the current offset but you actually need to get the offset corresponding to the *timestamp*. I changed date("Z") into date("Z",$Stamp); # ~~~ GMT Time Magic v2.0 ~~~~~~~~~~ # function GMT_Time($Stamp) { return (($Stamp == 0) ? time() : $Stamp) + date("Z",$Stamp); } Thats how it worked for me.

« previous php.notes (#101815) next »