- Support non-standard "GMT-XXXX" literal in date header (#1485729)

release-0.6
alecpl 16 years ago
parent 5faac054c3
commit 33875df40b

@ -4,6 +4,7 @@ CHANGELOG RoundCube Webmail
2009/02/10 (alec)
----------
- Use default_charset for messages without specified charset (#1485661, #1484961)
- Support non-standard "GMT-XXXX" literal in date header (#1485729)
2009/02/08 (thomasb)
----------

@ -713,6 +713,8 @@ function format_date($date, $format=NULL)
$ts = $date;
else if (!empty($date))
{
// support non-standard "GMTXXXX" literal
$date = preg_replace('/GMT\s*([+-][0-9]+)/', '\\1', $date);
// if date parsing fails, we have a date in non-rfc format.
// remove token from the end and try again
while ((($ts = @strtotime($date))===false) || ($ts < 0))

Loading…
Cancel
Save