summaryrefslogtreecommitdiff
path: root/src/lib/evil/evil_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evil/evil_time.c')
-rw-r--r--src/lib/evil/evil_time.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/evil/evil_time.c b/src/lib/evil/evil_time.c
index 1c06ecb250..a6984bf85c 100644
--- a/src/lib/evil/evil_time.c
+++ b/src/lib/evil/evil_time.c
@@ -13,7 +13,9 @@
13struct tm * 13struct tm *
14evil_localtime_r(const time_t *timep, struct tm *result) 14evil_localtime_r(const time_t *timep, struct tm *result)
15{ 15{
16 localtime_s(result, timep); 16 __time64_t t = *timep;
17
18 _localtime64_s(result, &t);
17 19
18 return result; 20 return result;
19} 21}