From bc13e35db0b8b265f87553d4df1c7326710cb3fa Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Thu, 25 Mar 2004 18:25:41 +0000 Subject: [PATCH] Use timegm, or our already existing replacement instead of timezone, as some platforms (FreeBSD in this case) don't define timezone according to posix. This is what I wanted to do anyway. Spotted by Andrzej Tobola --- source/passdb/pdb_ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/passdb/pdb_ldap.c b/source/passdb/pdb_ldap.c index 2141f2a3f1c..1831b0e8f9e 100644 --- a/source/passdb/pdb_ldap.c +++ b/source/passdb/pdb_ldap.c @@ -407,7 +407,7 @@ static time_t ldapsam_get_entry_timestamp( strptime(temp, "%Y%m%d%H%M%SZ", &tm); tzset(); - return (mktime(&tm) - timezone); + return timegm(&tm); } /********************************************************************** -- 2.11.4.GIT