From 227c87a42780843f76b262e91f1ef2c270d74f3b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 18 Feb 2017 21:01:32 +0300 Subject: fix for messages without a time stamp --- protocols/Discord/src/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Discord/src/utils.cpp') diff --git a/protocols/Discord/src/utils.cpp b/protocols/Discord/src/utils.cpp index 4747afd2a9..6078e45d0f 100644 --- a/protocols/Discord/src/utils.cpp +++ b/protocols/Discord/src/utils.cpp @@ -81,7 +81,7 @@ time_t StringToDate(const CMStringW &str) struct tm T = { 0 }; int boo; if (swscanf(str, L"%04d-%02d-%02dT%02d:%02d:%02d.%d", &T.tm_year, &T.tm_mon, &T.tm_mday, &T.tm_hour, &T.tm_min, &T.tm_sec, &boo) != 7) - return 0; + return time(0); T.tm_year -= 1900; T.tm_mon--; -- cgit v1.2.3