summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-18 21:01:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-18 21:01:32 +0300
commit227c87a42780843f76b262e91f1ef2c270d74f3b (patch)
tree3f1914065667acb7855b5650daaab6cb51dead59 /protocols
parent6f59b014a145d4bc7b6ec3e21f11a63af019d481 (diff)
fix for messages without a time stamp
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Discord/src/utils.cpp2
1 files changed, 1 insertions, 1 deletions
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--;