summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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--;