From: Christos Zoulas Date: Thu, 9 Jul 2015 15:13:51 +0000 (+0000) Subject: fix garmin map offset. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c51f474766d0bfdaa1587f2dbca2b08b1bd64fc8;p=file fix garmin map offset. --- diff --git a/magic/Magdir/map b/magic/Magdir/map index d9471fe5..ed3a4081 100644 --- a/magic/Magdir/map +++ b/magic/Magdir/map @@ -1,7 +1,7 @@ #------------------------------------------------------------------------------ -# $File: map,v 1.1 2014/06/03 18:22:25 christos Exp $ +# $File: map,v 1.2 2015/07/09 15:13:51 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)