From e8f3f79aa583bfe2996ae62bc899913275311281 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 21 Nov 1997 04:57:37 +0000 Subject: use LocTimeDiff() not TimeDiff() to ensure that longdate conversion is consistent (this is really just a cosmetic change) (This used to be commit 30b84bb68bfbfb022decc36c1b4869a39a06e556) --- source3/lib/time.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/lib/time.c b/source3/lib/time.c index 4eb508115d..bab80ad621 100644 --- a/source3/lib/time.c +++ b/source3/lib/time.c @@ -74,6 +74,7 @@ static int tm_diff(struct tm *a, struct tm *b) int hours = 24*days + (a->tm_hour - b->tm_hour); int minutes = 60*hours + (a->tm_min - b->tm_min); int seconds = 60*minutes + (a->tm_sec - b->tm_sec); + return seconds; } @@ -279,7 +280,7 @@ void put_long_date(char *p,time_t t) } /* this converts GMT to kludge-GMT */ - t -= TimeDiff(t) - serverzone; + t -= LocTimeDiff(t) - serverzone; d = (double) (t); -- cgit