summaryrefslogtreecommitdiff
path: root/x11-clocks/wmitime/files/patch-ab
diff options
context:
space:
mode:
authorChris Piazza <cpiazza@FreeBSD.org>1999-08-06 19:24:47 +0000
committerChris Piazza <cpiazza@FreeBSD.org>1999-08-06 19:24:47 +0000
commit02cffa57e60e864c1de6e2ff9257f7548088d046 (patch)
treed8c8b7adcdb5e25a0e23316640634a6ee9614395 /x11-clocks/wmitime/files/patch-ab
parentSEMI(semi-xemacs-mule-current) is a library of MIME feature for GNU Emacs. (diff)
Fix an inappropriate time calculation.
PR: 11587 Submitted by: Fumihiko Nishio <nishio@nexus.rim.or.jp> Rasmus Kaj <kaj@raditex.se>
Notes
Notes: svn path=/head/; revision=20578
Diffstat (limited to '')
-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 000000000000..87370ada5180
--- /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;