mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
add a warning if the timezone is not a multiple of 1 minute. This
should catch broken timezone files in slackware linux.
This commit is contained in:
@ -94,6 +94,11 @@ init the time differences
|
|||||||
void TimeInit(void)
|
void TimeInit(void)
|
||||||
{
|
{
|
||||||
serverzone = TimeZone(time(NULL));
|
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));
|
DEBUG(4,("Serverzone is %d\n",serverzone));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user