1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/x11-clocks/wmitime/files/patch-ab
Chris Piazza 02cffa57e6 Fix an inappropriate time calculation.
PR:		11587
Submitted by:	Fumihiko Nishio <nishio@nexus.rim.or.jp>
		Rasmus Kaj <kaj@raditex.se>
1999-08-06 19:24:47 +00:00

21 lines
631 B
Plaintext

--- 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;