]> git.tdb.fi Git - ext/subsurface.git/commit
Teach the date parser to also parse the international standard date format
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Sep 2011 00:13:39 +0000 (17:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Sep 2011 00:13:39 +0000 (17:13 -0700)
commit5001ab66cba885411e9ee4e8c701688b4928ab1d
tree11194c79b96a974cb5f43e5e0500a197a8064ee3
parent1376712f0bc952e33a42121570c64add6a2a9446
Teach the date parser to also parse the international standard date format

The standard way to write a date is yyyy-mm-dd, which is unambiguous and
sorts correctly.

We parsed that right in the 'datetime' case, but not in the normal date
case.  And we do want to use that in our output format, exactly because
it's standard.

And also parse 'duration' for the dive duration.  It's what we use when
saving, it just so happened that we ended up not parsing it right, but
then picking it up from the samples instead.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
parse-xml.c