note 87891 added to function.date-modify
| From: | dracozny at osu1 dot php dot net | Date: | Mon, 29 Dec 2008 08:32:20 +0000 |
| Subject: | note 87891 added to function.date-modify | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148636@lists.php.net to get a copy of this message | ||
just fyi
<?php
strtotime($date->format('Y-m-d G:i'))
?>
for some reason works correctly, but
<?php
$date->format('U')
?>
is the same as time() even though it should be modified for the correct timezone
----
Server IP: 208.69.120.35
Probable Submitter: 72.160.89.112
----
Manual Page -- http://www.php.net/manual/en/function.date-modify.php
Edit -- https://master.php.net/note/edit/87891
Del: integrated -- https://master.php.net/note/delete/87891/integrated
Del: useless -- https://master.php.net/note/delete/87891/useless
Del: bad code -- https://master.php.net/note/delete/87891/bad+code
Del: spam -- https://master.php.net/note/delete/87891/spam
Del: non-english -- https://master.php.net/note/delete/87891/non-english
Del: in docs -- https://master.php.net/note/delete/87891/in+docs
Del: other reasons-- https://master.php.net/note/delete/87891
Reject -- https://master.php.net/note/reject/87891
Search -- https://master.php.net/manage/user-notes.php