Do not set time to 0 when instantiate DateTime without time value
It should return the current date-time. issue7240 review41951002
This commit is contained in:
1 parent
bdfc7e1856
commit
e1cf57a4c1
1 file changed
+4
-4
+4
-4
@@ -148,10 +148,10 @@ var Sao = {};
|
||||
datetime.month(month);
|
||||
datetime.date(day);
|
||||
if (month !== undefined) {
|
||||
datetime.hour(hour || 0);
|
||||
datetime.minute(minute || 0);
|
||||
datetime.second(second || 0);
|
||||
datetime.milliseconds(millisecond || 0);
|
||||
datetime.hour(hour);
|
||||
datetime.minute(minute);
|
||||
datetime.second(second);
|
||||
datetime.milliseconds(millisecond);
|
||||
}
|
||||
datetime.isDateTime = true;
|
||||
datetime.local();
|
||||
|
||||
Reference in new issue
Block a user