note 95035 deleted from function.date-default-timezone-set by danbrown

From: Date: Thu, 10 Dec 2009 00:02:09 +0000
Subject: note 95035 deleted from function.date-default-timezone-set by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163800@lists.php.net to get a copy of this message
Note Submitter: whatisthebigpicture at gmail dot com ---- For some reason I could not use date_default_timezone_set() on yahoo's servers so I found an alternative. <?php $hours = -8; //The number of hours from GMT $seconds = $hours * 60 * 60; //Number of seconds in $hours $stamp = time() + $seconds; $date = date('n/j/y g:i:s A \P\S\T', $stamp); echo $date; ?>

« previous php.notes (#163800) next »