note 130281 added to class.datetimezone

From: Date: Sun, 04 May 2025 13:37:00 +0000
Subject: note 130281 added to class.datetimezone
Groups: php.notes 
Request: Send a blank email to php-notes+get-222126@lists.php.net to get a copy of this message
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

« previous php.notes (#222126) next »