note 104052 added to function.date-default-timezone-get
| From: | glennpratt+php at gmail dot com | Date: | Thu, 19 May 2011 20:30:45 +0000 |
| Subject: | note 104052 added to function.date-default-timezone-get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179889@lists.php.net to get a copy of this message | ||
In my case, I'm not sure I can guess the correct timezone any better than PHP and it's no
where near important enough to nag the user, so...
<?php
// Suppress DateTime warnings
date_default_timezone_set(@date_default_timezone_get());
?>
----
Server IP: 69.147.83.197
Probable Submitter: 38.107.251.3
----
Manual Page -- http://www.php.net/manual/en/function.date-default-timezone-get.php
Edit -- https://master.php.net/note/edit/104052
Del: integrated -- https://master.php.net/note/delete/104052/integrated
Del: useless -- https://master.php.net/note/delete/104052/useless
Del: bad code -- https://master.php.net/note/delete/104052/bad+code
Del: spam -- https://master.php.net/note/delete/104052/spam
Del: non-english -- https://master.php.net/note/delete/104052/non-english
Del: in docs -- https://master.php.net/note/delete/104052/in+docs
Del: other reasons-- https://master.php.net/note/delete/104052
Reject -- https://master.php.net/note/reject/104052
Search -- https://master.php.net/manage/user-notes.php