Getting separate outputs with Date Functions
From: Raymond Irving Date: Tue, 19 Feb 2013 03:28:10 +0000 Subject: Getting separate outputs with Date Functions Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
Hello, I'm getting two different values when I use a timestamp with the date_create() and date() functions: echo date_create('@1361240634')->format('Y-m-d'); // output: 2013-02-19 echo date('Y-m-d',1361240634); // output: 2013-02-18 Is this a known issue? My timezone setting is set to America/Toronto. System time is set to 2013-02-18. Tested with PHP version 5.3.0 and 5.3.21 __ Raymond
Thread (6 messages)
« previous | php.internals (#65923) | next » |
---|