From 33875df40b31d571597d92e9f1bd100fba10d10b Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 11 Feb 2009 08:38:38 -0500
Subject: [PATCH] - Support non-standard "GMT-XXXX" literal in date header (#1485729)

---
 program/include/main.inc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/program/include/main.inc b/program/include/main.inc
index 5ee6522..5cc0fb2 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -713,6 +713,8 @@
     $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))

--
Gitblit v1.9.1