From a0fb220a8b60b135cabf6741882437317116d868 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 27 Apr 2020 09:00:21 +0200 Subject: [PATCH] db2_local: replace timelocal() with mktime() - timelocal() is nonstandard GNU extension, not recommended to be used and mktime() should be equivalent: * https://linux.die.net/man/3/timegm - GH #2298 --- src/modules/db2_ldap/ld_fld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/db2_ldap/ld_fld.c b/src/modules/db2_ldap/ld_fld.c index 867c873e8f2..7af731f0772 100644 --- a/src/modules/db2_ldap/ld_fld.c +++ b/src/modules/db2_ldap/ld_fld.c @@ -270,7 +270,7 @@ static inline int ldap_gentime2db_datetime(time_t* dst, str* src) * of expiration by one hour when daylight saving is used */ time.tm_isdst = -1; - *dst = timelocal(&time); + *dst = mktime(&time); } return 0;