git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69460b4
)
add a warning if the timezone is not a multiple of 1 minute. This
author
Andrew Tridgell
<tridge@samba.org>
Wed, 3 Dec 1997 03:46:43 +0000
(
03:46
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 3 Dec 1997 03:46:43 +0000
(
03:46
+0000)
should catch broken timezone files in slackware linux.
(This used to be commit
ce37bd9dcaeaf0c5e97845954342762ebaf43b10
)
source3/lib/time.c
patch
|
blob
|
history
diff --git
a/source3/lib/time.c
b/source3/lib/time.c
index bab80ad621407647a4c5f9876c1cc4e171d85356..5fc6595b6f14251456e832b9fe26434c14911948 100644
(file)
--- a/
source3/lib/time.c
+++ b/
source3/lib/time.c
@@
-94,6
+94,11
@@
init the time differences
void TimeInit(void)
{
serverzone = TimeZone(time(NULL));
+
+ if ((serverzone % 60) != 0) {
+ DEBUG(1,("WARNING: Your timezone is not a multiple of 1 minute.\n"));
+ }
+
DEBUG(4,("Serverzone is %d\n",serverzone));
}