note 127811 added to function.date-default-timezone-set

From: Date: Sat, 22 Oct 2022 06:56:44 +0000
Subject: note 127811 added to function.date-default-timezone-set
Groups: php.notes 
Request: Send a blank email to php-notes+get-219761@lists.php.net to get a copy of this message
<?php $europe = date("d/m/Y - H:i:s"); date_default_timezone_set('America/Los_Angeles'); $america = date("d/m/Y - H:i:s"); // 1) Print Europe and America echo $europe . '<br>' . $america; /* Output: 22/10/2022 - 08:44:57 21/10/2022 - 23:44:57 */ ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.161 (proxied: 37.162.82.140) ---- Manual Page -- https://php.net/manual/en/function.date-default-timezone-set.php Edit -- https://main.php.net/note/edit/127811 Del: integrated -- https://main.php.net/note/delete/127811/integrated Del: useless -- https://main.php.net/note/delete/127811/useless Del: bad code -- https://main.php.net/note/delete/127811/bad+code Del: spam -- https://main.php.net/note/delete/127811/spam Del: non-english -- https://main.php.net/note/delete/127811/non-english Del: in docs -- https://main.php.net/note/delete/127811/in+docs Del: other reasons-- https://main.php.net/note/delete/127811 Reject -- https://main.php.net/note/reject/127811 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#219761) next »