Fixed wrong function called.

This commit is contained in:
Vincent Richard 2013-02-27 09:44:21 +01:00
parent 0d6aef8491
commit d2c2f52a23

View File

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