Set time to 0 when undefined

But not null because PYSON DateTime use null to get the current time.

issue7240
This commit is contained in:
Cédric Krier committed 2018-03-24 01:46:07 +01:00
1 parent e1cf57a4c1
commit 95fa4a2b63
1 file changed
+12
+12
View File
@@ -139,6 +139,18 @@ var Sao = {};
year = undefined;
}
else {
if (hour === undefined) {
hour = 0;
}
if (minute === undefined) {
minute = 0;
}
if (second === undefined) {
second = 0;
}
if (millisecond === undefined) {
millisecond = 0;
}
datetime = moment();
}
if (utc) {