[eluser]Buso[/eluser]
Code:
standard_date('DATE_RFC2822',time());
does nothing, while
Code:
standard_date('DATE_RFC822',time());
does what RFC2822 should do (or that is what I think)
if we look at the helper's code (line 114):
Code:
$formats = array(
'DATE_ATOM' => '%Y-%m-%dT%H:%i:%s%Q',
'DATE_COOKIE' => '%l, %d-%M-%y %H:%i:%s UTC',
'DATE_ISO8601' => '%Y-%m-%dT%H:%i:%s%O',
'DATE_RFC822' => '%D, %d %M %y %H:%i:%s %O',
'DATE_RFC850' => '%l, %d-%M-%y %H:%m:%i UTC',
'DATE_RFC1036' => '%D, %d %M %y %H:%i:%s %O',
'DATE_RFC1123' => '%D, %d %M %Y %H:%i:%s %O',
'DATE_RSS' => '%D, %d %M %Y %H:%i:%s %O',
'DATE_W3C' => '%Y-%m-%dT%H:%i:%s%Q'
);
the key=>value for constant 'DATE_RFC2822' is missing.
I used to use native date('r',time()) from PHP, and the manual says that 'r' corresponds to RFC2822 standard. That's what standard('DATE_RFC2822',time()) should do. Dunno what RFC822 format should look like though.