note 116618 added to datetime.construct

From: Date: Thu, 29 Jan 2015 20:58:53 +0000
Subject: note 116618 added to datetime.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-201557@lists.php.net to get a copy of this message
It is worth noting: If you have not setup a default timezone, an Exception (or error if PHP < 5.3.0) will be thrown even when the $time parameter of the constructor includes a timezone or is a UNIX timestamp. At least for me, this was unexpected considering that the $timezone parameter is ignored in the cases when "the $time parameter either is a UNIX timestamp (e.g. @946684800) or specifies a timezone (e.g. 2010-01-28T15:00:00+02:00)." ---- Server IP: 72.52.91.14 Probable Submitter: 173.247.1.53 ---- Manual Page -- http://php.net/manual/en/datetime.construct.php Edit -- https://master.php.net/note/edit/116618 Del: integrated -- https://master.php.net/note/delete/116618/integrated Del: useless -- https://master.php.net/note/delete/116618/useless Del: bad code -- https://master.php.net/note/delete/116618/bad+code Del: spam -- https://master.php.net/note/delete/116618/spam Del: non-english -- https://master.php.net/note/delete/116618/non-english Del: in docs -- https://master.php.net/note/delete/116618/in+docs Del: other reasons-- https://master.php.net/note/delete/116618 Reject -- https://master.php.net/note/reject/116618 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201557) next »