X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7320b695badad72772466e1cc49bb28c20b25ccc..1b2e8014ab6bc93d0ab0fe320ad3cfc8ed94ab81:/stglibs/common.lib/common.cpp?ds=sidebyside diff --git a/stglibs/common.lib/common.cpp b/stglibs/common.lib/common.cpp index 2b10af26..fc7c35ce 100644 --- a/stglibs/common.lib/common.cpp +++ b/stglibs/common.lib/common.cpp @@ -751,6 +751,9 @@ return buf; //--------------------------------------------------------------------------- time_t readTime(const std::string & ts) { +if (ts == "0000-00-00 00:00:00") + return 0; + struct tm brokenTime; brokenTime.tm_wday = 0;