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

From: Date: Tue, 15 Nov 2011 16:37:46 +0000
Subject: note 106459 deleted from function.date-default-timezone-set by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184486@lists.php.net to get a copy of this message
Note Submitter: atlantic at taridium dot net ---- An easy way to use the browser offset and set the offset without having to know the actual timezone name is as follows: So for example if I have a browser offset in minutes (retrieved via Javascript): $offset_hours = ($browser_offset / 60) * -1; date_default_timezone_set('Etc/GMT'.($offset_hours<=0 ? '+' : '').(-$offset_hours));

« previous php.notes (#184486) next »