Skip to content

Commit eb9f3b5

Browse files
authored
Merge pull request #4 from basysKom/master
Thank you so much!
2 parents 98e78c7 + 2a05a0b commit eb9f3b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/include/private/clock.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ class UtcClock : public IClock {
4242
time(&rawtime);
4343
#ifdef _WIN32
4444
gmtime_s(&ptm, &rawtime);
45+
return _mkgmtime(&ptm);
4546
#else
4647
gmtime_r(&rawtime, &ptm);
48+
return timegm(&ptm);
4749
#endif
48-
return mktime(&ptm);
4950
}
5051
};
5152
#endif // SRC_INCLUDE_PRIVATE_CLOCK_H_

0 commit comments

Comments
 (0)