]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/common.cpp
Merge branch 'stg-2.409' of stg.codes:stg into stg-2.409
[stg.git] / stglibs / common.lib / common.cpp
index 2b10af26d59fc7f41c4dceb0c687d383570e5af5..fc7c35ce86c5b19eebc1a569c3120ae2e1fc2ce2 100644 (file)
@@ -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;