View | Details | Raw Unified | Return to bug 128751
Collapse All | Expand All

(-)gpsman/Makefile (+1 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	gpsman
8
PORTNAME=	gpsman
9
PORTVERSION=	6.4
9
PORTVERSION=	6.4
10
PORTREVISION=	1
10
CATEGORIES=	astro tk geography
11
CATEGORIES=	astro tk geography
11
MASTER_SITES=	http://www.ncc.up.pt/gpsman/gpsmanhtml/
12
MASTER_SITES=	http://www.ncc.up.pt/gpsman/gpsmanhtml/
12
MASTER_SITE_SUBDIR=	science/cartography
13
MASTER_SITE_SUBDIR=	science/cartography
(-)gpsman/files/patch-garmin.tcl (+30 lines)
Line 0 Link Here
1
diff -ruN gmsrc/garmin.tcl gmsrc/garmin.tcl
2
--- gmsrc/garmin.tcl	2008-10-28 10:19:48.000000000 -0700
3
+++ gmsrc/garmin.tcl	2008-11-10 04:39:44.000000000 -0800
4
@@ -17,7 +17,7 @@
5
 #      along with this program.
6
 #
7
 #  File: garmin.tcl
8
-#  Last change:  23 October 2008
9
+#  Last change:  2 November 2008
10
 #
11
 # Includes contributions by
12
 # - David Gardner (djgardner_AT_users.sourceforge.net) marked
13
@@ -2567,7 +2567,7 @@
14
 }
15
 
16
 proc ConvGarminDate {gd} {
17
-    # converts Garmin date (seconds since 1990.01.01 00:00:00) into list
18
+    # converts Garmin date (seconds since 1989.12.31 00:00:00) into list
19
     #  with date in current format and seconds since beginning of $YEAR0,
20
     #  not necessarily a leap year, but < 1990
21
     global YEAR0 TimeOffset
22
@@ -2579,7 +2579,7 @@
23
 	if { $yy%100!=0 || $yy%400==0 } { incr dd }
24
 	incr yy 4
25
     }
26
-    set secs [expr round((((1990-$YEAR0)*365+$dd)*24+$TimeOffset-12)*3600+$gd)]
27
+    set secs [expr round((((1990-$YEAR0)*365+$dd)*24+$TimeOffset)*3600+$gd)]
28
     return [list [DateFromSecs $secs] $secs]
29
 }
30
 
(-)gpsman/files/patch-wrtdials.tcl (+22 lines)
Line 0 Link Here
1
diff -ruN gmsrc/wrtdials.tcl gmsrc/wrtdials.tcl
2
--- gmsrc/wrtdials.tcl	2008-10-28 10:19:48.000000000 -0700
3
+++ gmsrc/wrtdials.tcl	2008-11-10 04:39:44.000000000 -0800
4
@@ -17,7 +17,7 @@
5
 #      along with this program.
6
 #
7
 #  File: wrtdials.tcl
8
-#  Last change:  14 September 2008
9
+#  Last change:  8 November 2008
10
 #
11
 # Includes contributions by
12
 #  - Brian Baulch (baulchb _AT_ onthenet.com.au) marked "BSB contribution"
13
@@ -4099,8 +4099,8 @@
14
 				}
15
 				break
16
 			    }
17
+			    incr i
18
 			}
19
-			incr i
20
 		    }
21
 		}
22
 		if { $wh == "WP" } {

Return to bug 128751