note 44658 added to function.date
| From: | peter dot stagg at arts dot monash dot edu dot au | Date: | Thu, 12 Aug 2004 08:18:43 +0000 |
| Subject: | note 44658 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74530@lists.php.net to get a copy of this message | ||
me thinks the line:
$date = date('Y-m-d\TG:i:s', $time) . $tzd;
should infact be:
$date = date('Y-m-d\TH:i:s', $time) . $tzd;
as IMHO the ISO 8601 standard <http://www.w3.org/TR/NOTE-datetime> calls for:
"hh = two digits of hour (00 through 23) (am/pm NOT allowed)"
and 'G' = 24-hour format of an hour *without* leading zeros
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44658
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44658&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44658&report=yes
Search -- http://master.php.net/manage/user-notes.php