s3-pdb_samba4: Fix time handling, use nt_time_to_unix()
authorAndrew Bartlett <abartlet@samba.org>
Wed, 27 Jun 2012 04:56:04 +0000 (14:56 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 Jun 2012 09:29:17 +0000 (11:29 +0200)
This matches 478d74fe1447c4588b14ef7040c8c13339d54026 which I failed to
merge from pdb_ads.

Andrew Bartlett

source3/passdb/pdb_samba4.c

index c94f29c7ae156b7329aafd197ccb0ee70c8a9414..b0e34e42d1a1e1364c3e816f9ecb4133d55d0d36 100644 (file)
@@ -61,7 +61,7 @@ static bool pdb_samba4_pull_time(struct ldb_message *msg, const char *attr,
                return false;
        }
        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;
 }