aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dateTime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dateTime.cpp b/src/dateTime.cpp
index 58680791..a0c03ede 100644
--- a/src/dateTime.cpp
+++ b/src/dateTime.cpp
@@ -659,8 +659,8 @@ datetime::datetime(const time_t t, const int zone)
#if VMIME_HAVE_LOCALTIME_S
struct tm tms;
- if (!gmtime_r(&tms, &t))
- localtime_r(&tms, &t);
+ if (!gmtime_s(&tms, &t))
+ localtime_s(&tms, &t);
#elif VMIME_HAVE_LOCALTIME_R
struct tm tms;