From 855aaf89efe57f90543852a8c69dd795fa93ffba Mon Sep 17 00:00:00 2001 From: Jordan Miller Date: Sat, 18 Apr 2009 15:47:26 -0500 Subject: [PATCH] Adding rapiddescent's recommendation to change output filename so it sorts properly --- gant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gant.c b/gant.c index 5c732ae..89a87c7 100644 --- 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); -- 2.39.5