diff options
author | Jim McDonough <jmcd@samba.org> | 2004-03-25 18:25:41 +0000 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2004-03-25 18:25:41 +0000 |
commit | 2732b702fb956169efb7096a8305b677b56b8706 (patch) | |
tree | 8a49f5700794f2b1c53fb65bb5c2bc6ed6815ac9 | |
parent | 073d1c1964985ce69a35780c1eee91a76bc1400b (diff) | |
download | samba-2732b702fb956169efb7096a8305b677b56b8706.tar.gz samba-2732b702fb956169efb7096a8305b677b56b8706.tar.bz2 samba-2732b702fb956169efb7096a8305b677b56b8706.zip |
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 <san@iem.pw.edu.pl>
(This used to be commit bc13e35db0b8b265f87553d4df1c7326710cb3fa)
-rw-r--r-- | source3/passdb/pdb_ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } /********************************************************************** |