From 6ae097bb9e02eb4ebe9b8b53e12e112b2a6dd465 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 25 Nov 2015 02:36:35 +0000 Subject: [PATCH] Log a warning when the configured time zone does not match the detected local time zone. --- src/sbbs3/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index 4077dfba3b..7b2c2f9466 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -4733,6 +4733,10 @@ void DLLCALL bbs_thread(void* arg) lprintf(LOG_ERR,"!TIME PROBLEM (%ld)",t); } + if(smb_tzutc(sys_timezone(&scfg)) != xpTimeZone_local()) { + lprintf(LOG_WARNING,"Configured timezone (0x%04hX, UTC offset: %d) does not match local timezone offset: %d" + ,scfg.sys_timezone, smb_tzutc(sys_timezone(&scfg)), xpTimeZone_local()); + } if(uptime==0) uptime=time(NULL); /* this must be done *after* setting the timezone */ -- GitLab