]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/firebird/firebird_store_utils.cpp
Ticket 37. In the TariffChangeIsAllowed() function return "" added and
[stg.git] / projects / stargazer / plugins / store / firebird / firebird_store_utils.cpp
index 96eb817d64b8e24f78128b81013a8eeeb2ddf22f..bbbc879438a2aeeae5c1ff782b708e6247fc886c 100644 (file)
@@ -41,6 +41,8 @@ time_t ts2time_t(const IBPP::Timestamp & ts)
     memset(&time_tm, 0, sizeof(time_tm));
     ts.GetDate(year, month, day);
     ts.GetTime(hour, min, sec);
+    if (year < 1990)
+        return 0;
     sprintf(buf, "%d-%d-%d %d:%d:%d", year, month, day, hour, min, sec);
     stg_strptime(buf, "%Y-%m-%d %H:%M:%S", &time_tm);