git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31e8936
)
use LocTimeDiff() not TimeDiff() to ensure that longdate conversion is
author
Andrew Tridgell
<tridge@samba.org>
Fri, 21 Nov 1997 04:57:37 +0000
(
04:57
+0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source3/lib/time.c
b/source3/lib/time.c
index 4eb508115d10f9d4d655ad61fde81f71b3d94378..bab80ad621407647a4c5f9876c1cc4e171d85356 100644
(file)
--- 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 -=
Loc
TimeDiff(t) - serverzone;
d = (double) (t);