From 2732b702fb956169efb7096a8305b677b56b8706 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Thu, 25 Mar 2004 18:25:41 +0000 Subject: 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 (This used to be commit bc13e35db0b8b265f87553d4df1c7326710cb3fa) --- source3/passdb/pdb_ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 2141f2a3f1..1831b0e8f9 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/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); } /********************************************************************** -- cgit