note 104133 added to function.localtime
| From: | Chris at osu1 dot php dot net | Date: | Wed, 25 May 2011 15:26:40 +0000 |
| Subject: | note 104133 added to function.localtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180030@lists.php.net to get a copy of this message | ||
Sometimes, there's not a server-based/PHP method for getting local time. You have to get it
from the client via Javascript. Google "bitbucket timezone detect" and use it to set a
"local_timezone" cookie that you can read from PHP and set via date_default_timezone_set()
----
Server IP: 64.71.164.2
Probable Submitter: 65.41.147.195
----
Manual Page -- http://www.php.net/manual/en/function.localtime.php
Edit -- https://master.php.net/note/edit/104133
Del: integrated -- https://master.php.net/note/delete/104133/integrated
Del: useless -- https://master.php.net/note/delete/104133/useless
Del: bad code -- https://master.php.net/note/delete/104133/bad+code
Del: spam -- https://master.php.net/note/delete/104133/spam
Del: non-english -- https://master.php.net/note/delete/104133/non-english
Del: in docs -- https://master.php.net/note/delete/104133/in+docs
Del: other reasons-- https://master.php.net/note/delete/104133
Reject -- https://master.php.net/note/reject/104133
Search -- https://master.php.net/manage/user-notes.php