]> err.no Git - gant/commitdiff
Adding rapiddescent's recommendation to change output filename so it sorts properly
authorJordan Miller <jordan@luckyone.(none)>
Sat, 18 Apr 2009 20:47:26 +0000 (15:47 -0500)
committerJordan Miller <jordan@luckyone.(none)>
Sat, 18 Apr 2009 20:47:26 +0000 (15:47 -0500)
gant.c

diff --git a/gant.c b/gant.c
index 5c732ae410ab11a5b08b4d38f4763bd595a63956..89a87c7c8625980ec72176bac95150c9dd1cdc19 100644 (file)
--- a/gant.c
+++ b/gant.c
@@ -404,7 +404,7 @@ decode(ushort bloblen, ushort pkttype, ushort pktlen, int dsize, uchar *data)
                        tv_lap = lapbuf[lap][4] + lapbuf[lap][5]*256 +
                                        lapbuf[lap][6]*256*256 + lapbuf[lap][7]*256*256*256;
                        ttv = tv_lap + 631065600; // garmin epoch offset
-                       strftime(tbuf, sizeof tbuf, "%d.%m.%Y %H%M%S.TCX", localtime(&ttv));
+                       strftime(tbuf, sizeof tbuf, "%Y.%m.%d %H%M%S.TCX", localtime(&ttv));
                        // open file and start with header of xml file
                        tcxfile = fopen(tbuf, "wt");
                        print_tcx_header(tcxfile);