use LocTimeDiff() not TimeDiff() to ensure that longdate conversion is
authorAndrew Tridgell <tridge@samba.org>
Fri, 21 Nov 1997 04:57:37 +0000 (04:57 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 21 Nov 1997 04:57:37 +0000 (04:57 +0000)
consistent (this is really just a cosmetic change)
(This used to be commit 30b84bb68bfbfb022decc36c1b4869a39a06e556)

source3/lib/time.c

index 4eb508115d10f9d4d655ad61fde81f71b3d94378..bab80ad621407647a4c5f9876c1cc4e171d85356 100644 (file)
@@ -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);