From 6373cb5683a0f03d409545e3bf057430217156c3 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 17 Jan 2012 11:31:21 +0000 Subject: Add %z for sources using non-GTM for timezone (ex, bs2). (Thanks for mhsin's help) git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5515 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/innbbsd/receive_article.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pttbbs/innbbsd/receive_article.c b/pttbbs/innbbsd/receive_article.c index 1ece1c51..90325748 100644 --- a/pttbbs/innbbsd/receive_article.c +++ b/pttbbs/innbbsd/receive_article.c @@ -377,6 +377,8 @@ receive_article() */ if (strptime(DATE, "%d %b %Y %X ", &tmbuf) != NULL) datevalue = timegm(&tmbuf); + else if (strptime(DATE, "%a, %d %b %Y %X %z", &tmbuf) != NULL) + datevalue = timegm(&tmbuf); else if (strptime(DATE, "%a, %d %b %Y %X ", &tmbuf) != NULL) datevalue = timegm(&tmbuf); else -- cgit v1.2.3