diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-12-03 03:46:43 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-12-03 03:46:43 +0000 |
commit | 2b8247dd09124650cce41f06f9aeb2ac89862d0b (patch) | |
tree | 2084a7df53968a5f34adc470073a9ca1de1155fe /source3/lib | |
parent | 69460b470f44c82b677a41d65ab4e172fc7b284b (diff) | |
download | samba-2b8247dd09124650cce41f06f9aeb2ac89862d0b.tar.gz samba-2b8247dd09124650cce41f06f9aeb2ac89862d0b.tar.bz2 samba-2b8247dd09124650cce41f06f9aeb2ac89862d0b.zip |
add a warning if the timezone is not a multiple of 1 minute. This
should catch broken timezone files in slackware linux.
(This used to be commit ce37bd9dcaeaf0c5e97845954342762ebaf43b10)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/time.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c index bab80ad621..5fc6595b6f 100644 --- 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)); } |