From: Ralph Boehme Date: Fri, 22 Nov 2019 10:47:22 +0000 (+0100) Subject: lib: use nt_time_to_unix_full() in nt_time_string() X-Git-Tag: ldb-2.1.0~425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b938b4d339de095c670661600431bd6383a747b;p=thirdparty%2Fsamba.git lib: use nt_time_to_unix_full() in nt_time_string() This enables printing time values before the UNIX epoch coming in over the wire in smbclient allinfo command. BUG: https://bugzilla.samba.org/show_bug.cgi?id=7771 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/lib/util/time.c b/lib/util/time.c index 89f9a45dd61..16d89a3b7d3 100644 --- a/lib/util/time.c +++ b/lib/util/time.c @@ -496,7 +496,7 @@ _PUBLIC_ const char *nt_time_string(TALLOC_CTX *mem_ctx, NTTIME nt) if (nt == 0) { return "NTTIME(0)"; } - t = nt_time_to_unix(nt); + t = nt_time_to_full_time_t(nt); return timestring(mem_ctx, t); }