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;