New tests for UTC parser and UTC formatting
[ACL.git] / src / utc.cpp
index 934ba38..59d87d7 100644 (file)
@@ -64,6 +64,13 @@ UTC::UTC(String s)
       d.month = pd->month;
       d.day   = pd->day;
    }
+
+   if (t.hours == -1)
+      t.hours = 0;
+   if (t.minutes == -1)
+      t.minutes = 0;
+   if (t.seconds == -1)
+      t.seconds = 0;
 }
 
 UTC Now(bool local)