diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-11-21 04:57:37 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-11-21 04:57:37 +0000 |
commit | e8f3f79aa583bfe2996ae62bc899913275311281 (patch) | |
tree | 92e809381fb4a476cffea3a9ef5369a3ae7e1ef7 /source3/lib | |
parent | 31e8936b9a416aad109e6f63f4c90ac596116510 (diff) | |
download | samba-e8f3f79aa583bfe2996ae62bc899913275311281.tar.gz samba-e8f3f79aa583bfe2996ae62bc899913275311281.tar.bz2 samba-e8f3f79aa583bfe2996ae62bc899913275311281.zip |
use LocTimeDiff() not TimeDiff() to ensure that longdate conversion is
consistent (this is really just a cosmetic change)
(This used to be commit 30b84bb68bfbfb022decc36c1b4869a39a06e556)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/time.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |