tags 414489 + patch pending
thanks

Actually, the DST comes into effect after next change of the day,
because only then the display is recalculated and redrawn.

Attached is a patch to fix that bug. The loop runs now every minute.

Martin (Godisch): When was the last contact to upstream? Judging from
the changelogs, upstream development is dead, so I would just go ahead
with uploading a fixed version and also adopting the package by doing
so.

Regards,
Martin
diff -ru wmSun.old/wmSun.c wmSun/wmSun.c
--- wmSun.old/wmSun.c	2008-03-30 03:01:54.000000000 +0200
+++ wmSun/wmSun.c	2008-03-30 03:03:38.000000000 +0200
@@ -180,7 +180,7 @@
 	if (n>nMAX){
 
 	    n = 0;
-	    nMAX = 1000;
+	    nMAX = 60;
 
 
             CurrentGMTTime = time(CurrentTime); GMTTime = gmtime(&CurrentGMTTime); 
@@ -194,7 +194,8 @@
 	    CurrentLocalTime = CurrentGMTTime; LocalTime = localtime(&CurrentLocalTime);
 	    LocalDayOfMonth = LocalTime->tm_mday;
 
-	    if ((OldLocalDayOfMonth != LocalDayOfMonth)||(Flag)){
+// Redraw always to catch e.g. DST changes (M. Stigge, 2008-04-10)
+//	    if ((OldLocalDayOfMonth != LocalDayOfMonth)||(Flag)){
 
 		Flag = 0;
 
@@ -251,7 +252,7 @@
 	    	    copyXPMArea(10, 84, 28, 7, 19, 40);
 		}
 
-	    }
+//	    }
 
 	    OldLocalDayOfMonth = LocalDayOfMonth;
 

Reply via email to