1
0
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:
Andrew Bartlett 2012-06-27 14:56:04 +10:00
parent 46db466372
commit f7c372795c

View File

@ -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;
} }