Index: trunk/docs/Changelog
===================================================================
--- trunk/docs/Changelog	(revision 492)
+++ trunk/docs/Changelog	(revision 493)
@@ -1,3 +1,5 @@
 4.1.1:
+	* fix problem with timezone calculation on month rollover for
+	negative timezones (west of GMT; reported by Bond)
 	* fix problem with rotated logfiles when content is always constant,
 	i.e. checksum does not change (reported by Bond).
Index: trunk/src/sh_unix.c
===================================================================
--- trunk/src/sh_unix.c	(revision 492)
+++ trunk/src/sh_unix.c	(revision 493)
@@ -2316,5 +2316,7 @@
       /* Check for datum wrap-around.
        */
-      if      (aa.tm_year < bb.tm_year)
+      if      ((aa.tm_mday == 1) && (aa.tm_mday < bb.tm_mday))
+	sign = ( 1);
+      else if (aa.tm_year < bb.tm_year)
 	sign = (-1);
       else if (aa.tm_mon  < bb.tm_mon)
Index: trunk/test/testhash.sh
===================================================================
--- trunk/test/testhash.sh	(revision 492)
+++ trunk/test/testhash.sh	(revision 493)
@@ -63,5 +63,5 @@
 	fi
 	#
-	${TOP_SRCDIR}/configure --enable-debug=gdb --quiet $TRUST --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file --enable-db-reload '--enable-login-watch' '--enable-mounts-check' ${C_LOGFILE} '--enable-port-check' '--enable-message-queue' '--enable-suidcheck' '--disable-dnmalloc'
+	${TOP_SRCDIR}/configure --enable-debug=gdb --quiet $TRUST --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file --enable-db-reload '--enable-login-watch' '--enable-mounts-check' ${C_LOGFILE} '--enable-port-check' '--enable-process-check' '--enable-message-queue' '--enable-suidcheck' '--disable-dnmalloc'
 	#
 	fail=0
