From c67901eb2c4490aa7c665a9c00610f5598a6e76f Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Tue, 11 Oct 2016 16:06:39 +0300 Subject: [PATCH] Ticket 37. if (ts == "0000-00-00 00:00:00") construction added in the readTime() function. --- stglibs/common.lib/common.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.44.2