From 4876574e3e50e8f65bd642ab8164dd9d99b9283f Mon Sep 17 00:00:00 2001 From: dockes Date: Fri, 5 Sep 2008 10:33:27 +0000 Subject: [PATCH] accept iso date format (2008-09-05T11:55:32) --- src/internfile/myhtmlparse.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/internfile/myhtmlparse.cpp b/src/internfile/myhtmlparse.cpp index 79a177da..f5729b55 100644 --- a/src/internfile/myhtmlparse.cpp +++ b/src/internfile/myhtmlparse.cpp @@ -361,7 +361,10 @@ MyHtmlParser::opening_tag(const string &tag, const map &p) decode_entities(tmp); struct tm tm; if (strptime(tmp.c_str(), - " %Y-%m-%d %H:%M:%S ", &tm)) { + " %Y-%m-%d %H:%M:%S ", &tm) || + strptime(tmp.c_str(), + "%Y-%m-%dT%H:%M:%S", &tm) + ) { char ascuxtime[100]; sprintf(ascuxtime, "%ld", (long)mktime(&tm)); dmtime = ascuxtime;