Commit 891b42cd authored by jan.koester's avatar jan.koester
Browse files

win build

parent 8983b7d2
Loading
Loading
Loading
Loading
+8 −0
Changes for plugins/survey/survey.cpp: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -963,7 +963,11 @@ namespace blogi {
            // Timestamp
            time_t now = time(nullptr);
            struct tm tmBuf;
#ifdef _WIN32
            gmtime_s(&tmBuf, &now);
#else
            gmtime_r(&now, &tmBuf);
#endif
            char timeBuf[64];
            strftime(timeBuf, sizeof(timeBuf), "%Y-%m-%d %H:%M:%S", &tmBuf);

@@ -1285,7 +1289,11 @@ namespace blogi {
            // Timestamp
            time_t now = time(nullptr);
            struct tm tmBuf;
#ifdef _WIN32
            gmtime_s(&tmBuf, &now);
#else
            gmtime_r(&now, &tmBuf);
#endif
            char timeBuf[64];
            strftime(timeBuf, sizeof(timeBuf), "%Y-%m-%d %H:%M:%S", &tmBuf);