aboutsummaryrefslogtreecommitdiffstats
path: root/x11-clocks/wmitime/files
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>1999-08-07 03:24:47 +0800
committercpiazza <cpiazza@FreeBSD.org>1999-08-07 03:24:47 +0800
commitf6f0b611fdb5c8a568769a1be376827ae5cf1506 (patch)
tree56f5523e17c3e990aeb47beb19804eb8a20b87f2 /x11-clocks/wmitime/files
parent44699c102cde5c3046985d37eb434574bb3e9f5a (diff)
downloadfreebsd-ports-graphics-f6f0b611fdb5c8a568769a1be376827ae5cf1506.tar.gz
freebsd-ports-graphics-f6f0b611fdb5c8a568769a1be376827ae5cf1506.tar.zst
freebsd-ports-graphics-f6f0b611fdb5c8a568769a1be376827ae5cf1506.zip
Fix an inappropriate time calculation.
PR: 11587 Submitted by: Fumihiko Nishio <nishio@nexus.rim.or.jp> Rasmus Kaj <kaj@raditex.se>
Diffstat (limited to 'x11-clocks/wmitime/files')
-rw-r--r--x11-clocks/wmitime/files/patch-ab20
1 files changed, 20 insertions, 0 deletions
diff --git a/x11-clocks/wmitime/files/patch-ab b/x11-clocks/wmitime/files/patch-ab
new file mode 100644
index 00000000000..87370ada518
--- /dev/null
+++ b/x11-clocks/wmitime/files/patch-ab
@@ -0,0 +1,20 @@
+--- wmitime.c.orig Fri Aug 6 15:12:36 1999
++++ wmitime.c Fri Aug 6 15:10:34 1999
+@@ -281,7 +281,7 @@
+
+ // Compute Inet Time
+ iTime=(clk->tm_hour*3600+clk->tm_min*60+clk->tm_sec);
+- iTime=iTime+((timezone-1)+3600);
++ iTime=iTime+((1-clk->tm_gmtoff)+3600);
+ if (clk->tm_isdst)
+ iTime-=3600;
+ iTime=(iTime*1000)/86400;
+@@ -398,7 +398,7 @@
+
+ // Calculate Wheel Position...
+ iTime=(clk->tm_hour*3600+clk->tm_min*60+clk->tm_sec);
+- iTime=iTime+((timezone-1)+3600);
++ iTime=iTime+((1-clk->tm_gmtoff)+3600);
+ if (clk->tm_isdst)
+ iTime-=3600;
+ iTime=(iTime*1000)/8640;