]> granicus.if.org Git - file/commitdiff
fix garmin map offset.
authorChristos Zoulas <christos@zoulas.com>
Thu, 9 Jul 2015 15:13:51 +0000 (15:13 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 9 Jul 2015 15:13:51 +0000 (15:13 +0000)
magic/Magdir/map

index 8d65d260070c7a583747958620021002261ea909..079b01f2d7e91ba8f110b38d6244b8502fe9ba05 100644 (file)
@@ -1,7 +1,7 @@
 
 
 #------------------------------------------------------------------------------
-# $File: msdos,v 1.99 2014/06/03 01:40:24 christos Exp $
+# $File: map,v 1.1 2014/06/03 18:22:25 christos Exp $
 # map:  file(1) magic for Map data
 #
 
@@ -9,9 +9,10 @@
 8      string  .FIT            FIT Map data
 >15    byte    0
 >>35   belong  x               \b, unit id %d
-# 20 years after unix epoch
 >>39   lelong  x               \b, serial %u
->>43   ledate/631152000 x      \b, %s
+# 20 years after unix epoch
+# TZ=GMT date -d '1989-12-31 0:00' +%s
+>>43   leldate+631065600       x       \b, %s
 
 >>47   leshort x               \b, manufacturer %d
 >>47   leshort 1               \b (garmin)