summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-01-17 19:31:21 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-01-17 19:31:21 +0800
commit6373cb5683a0f03d409545e3bf057430217156c3 (patch)
tree7410021923945b2f74797d1de60c673abce67b89
parent13a5327b06c92663d4f80f72c0246ca4529e26e6 (diff)
downloadpttbbs-6373cb5683a0f03d409545e3bf057430217156c3.tar
pttbbs-6373cb5683a0f03d409545e3bf057430217156c3.tar.gz
pttbbs-6373cb5683a0f03d409545e3bf057430217156c3.tar.bz2
pttbbs-6373cb5683a0f03d409545e3bf057430217156c3.tar.lz
pttbbs-6373cb5683a0f03d409545e3bf057430217156c3.tar.xz
pttbbs-6373cb5683a0f03d409545e3bf057430217156c3.tar.zst
pttbbs-6373cb5683a0f03d409545e3bf057430217156c3.zip
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
-rw-r--r--pttbbs/innbbsd/receive_article.c2
1 files changed, 2 insertions, 0 deletions
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