| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
Unfortunately a timezone must be supplied to the constructor. In order to get the current configured timezone use this:
<?php
$tz = new \DateTimeZone(date_default_timezone_get());
?>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 83.97.87.43)
----
Manual Page -- https://php.net/manual/en/class.datetimezone.php
Edit -- https://main.php.net/note/edit/130281
Del: integrated -- https://main.php.net/note/delete/130281/integrated
Del: useless -- https://main.php.net/note/delete/130281/useless
Del: bad code -- https://main.php.net/note/delete/130281/bad+code
Del: spam -- https://main.php.net/note/delete/130281/spam
Del: non-english -- https://main.php.net/note/delete/130281/non-english
Del: in docs -- https://main.php.net/note/delete/130281/in+docs
Del: other reasons-- https://main.php.net/note/delete/130281
Reject -- https://main.php.net/note/reject/130281
Search -- https://main.php.net/manage/user-notes.php