projects
/
ACL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New tests for UTC parser and UTC formatting
[ACL.git]
/
src
/
utc.cpp
diff --git
a/src/utc.cpp
b/src/utc.cpp
index
934ba38
..
59d87d7
100644
(file)
--- a/
src/utc.cpp
+++ b/
src/utc.cpp
@@
-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)