From: Jordan Miller Date: Sat, 18 Apr 2009 20:47:26 +0000 (-0500) Subject: Adding rapiddescent's recommendation to change output filename so it sorts properly X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=855aaf89efe57f90543852a8c69dd795fa93ffba;p=gant Adding rapiddescent's recommendation to change output filename so it sorts properly --- 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);