mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3-pdb_samba4: Fix time handling, use nt_time_to_unix()
This matches 478d74fe14
which I failed to
merge from pdb_ads.
Andrew Bartlett
This commit is contained in:
parent
46db466372
commit
f7c372795c
@ -61,7 +61,7 @@ static bool pdb_samba4_pull_time(struct ldb_message *msg, const char *attr,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
tmp = ldb_msg_find_attr_as_uint64(msg, attr, 0);
|
tmp = ldb_msg_find_attr_as_uint64(msg, attr, 0);
|
||||||
*ptime = uint64s_nt_time_to_unix_abs(&tmp);
|
*ptime = nt_time_to_unix(tmp);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user