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:
1 parent
e1cf57a4c1
commit
95fa4a2b63
1 file changed
+12
+12
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user