note 106497 added to function.timezone-name-from-abbr
| From: | skenow at impresscms dot org | Date: | Mon, 14 Nov 2011 17:29:49 +0000 |
| Subject: | note 106497 added to function.timezone-name-from-abbr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184436@lists.php.net to get a copy of this message | ||
I have found the 3rd argument is not optional if you wish to determine a timezone from the GMT
offset.
<?php echo timezone_name_from_abbr("", 3600); ?>
will generate a notice with the following explanation "Notice: date_default_timezone_set()
[function.date-default-timezone-set]: Timezone ID '' is invalid in file ..."
Use all 3 parameters and you'll be error free
<?php echo timezone_name_from_abbr("", 3600, 0); ?>
----
Server IP: 208.69.120.55
Probable Submitter: 74.121.204.6
----
Manual Page -- http://www.php.net/manual/en/function.timezone-name-from-abbr.php
Edit -- https://master.php.net/note/edit/106497
Del: integrated -- https://master.php.net/note/delete/106497/integrated
Del: useless -- https://master.php.net/note/delete/106497/useless
Del: bad code -- https://master.php.net/note/delete/106497/bad+code
Del: spam -- https://master.php.net/note/delete/106497/spam
Del: non-english -- https://master.php.net/note/delete/106497/non-english
Del: in docs -- https://master.php.net/note/delete/106497/in+docs
Del: other reasons-- https://master.php.net/note/delete/106497
Reject -- https://master.php.net/note/reject/106497
Search -- https://master.php.net/manage/user-notes.php