1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
--- a/BlockOut/Utils.cpp
+++ b/BlockOut/Utils.cpp
@@ -106,8 +106,9 @@
static char ret[32];
if( time>0 ) {
-#ifdef LOCALTIME32
- struct tm *ts = _localtime32((__time32_t *)&time);
+#ifdef LOCALTIME64
+ time_t d = (time_t)time;
+ struct tm *ts = localtime(&d);
#else
time_t innerTm = (time_t)time;
struct tm *ts = localtime((time_t *)&innerTm);
@@ -130,8 +131,9 @@
static char ret[32];
if( time>0 ) {
-#ifdef LOCALTIME32
- struct tm *ts = _localtime32((__time32_t *)&time);
+#ifdef LOCALTIME64
+ time_t d = (time_t)time;
+ struct tm *ts = localtime(&d);
#else
time_t innerTm = (time_t)time;
struct tm *ts = localtime((time_t *)&innerTm);
|