From 02cffa57e60e864c1de6e2ff9257f7548088d046 Mon Sep 17 00:00:00 2001 From: Chris Piazza Date: Fri, 6 Aug 1999 19:24:47 +0000 Subject: Fix an inappropriate time calculation. PR: 11587 Submitted by: Fumihiko Nishio Rasmus Kaj --- x11-clocks/wmitime/files/patch-ab | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 x11-clocks/wmitime/files/patch-ab (limited to 'x11-clocks/wmitime') 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; -- cgit v1.2.3