--- 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);