1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

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 bc13e35db0)
This commit is contained in:
Jim McDonough 2004-03-25 18:25:41 +00:00
parent 073d1c1964
commit 2732b702fb

View File

@ -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);
}
/**********************************************************************