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:
parent
073d1c1964
commit
2732b702fb
@ -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);
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user