Reinstate fractional seconds, as despite xsd:dateTime's documentation not specifying...
authorDaniel Silverstone <dsilvers@svn.openstreetmap.org>
Sat, 22 Nov 2008 12:05:34 +0000 (12:05 +0000)
committerDaniel Silverstone <dsilvers@svn.openstreetmap.org>
Sat, 22 Nov 2008 12:05:34 +0000 (12:05 +0000)
src/gpx.c

index f56fa6e..ebdb590 100644 (file)
--- a/src/gpx.c
+++ b/src/gpx.c
@@ -339,7 +339,7 @@ gpx_handle_end_element(void *_ctx, const XML_Char *name)
       }
     }
     
-    if (pnull != NULL && *pnull == '\0') {
+    if (pnull != NULL && (*pnull == '\0' || *pnull == '.')) {
       ctx->point->timestamp = ctx->accumulator;
       ctx->accumulator = NULL;
       ctx->got_time = true;