Skip to content

Commit 9d02b1b

Browse files
author
Daniel Herzog
committed
Fixed treating milliseconds as int when it really means after-floating-point.
1 parent fb2f8c8 commit 9d02b1b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/scripts/dom.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,13 +800,14 @@ Date.fromLocaleISOString = function(localeISOString)
800800
date.setHours,
801801
date.setMinutes,
802802
date.setSeconds,
803-
date.setMilliseconds
803+
function(v){
804+
this.setMilliseconds(("0." + v) * 1000);
805+
}
804806
].forEach(function(func, i){
805807
func.call(date, Number(parts[i] || 0));
806808
});
807809
return date;
808810
}
809-
return null;
810811
};
811812

812813
/**

0 commit comments

Comments
 (0)