不要怂,就是干,撸起袖子干!

Commit c801a8a5 by Mick Hansen

Merge pull request #4945 from limianwang/master

convert original time to Date object
2 parents 1b465d3e 84a0675b
Showing with 3 additions and 0 deletions
......@@ -345,6 +345,9 @@ Instance.prototype.set = function(key, value, options) { // testhint options:non
if (!(value instanceof Date)) {
value = new Date(value);
}
if (!(originalValue instanceof Date)) {
originalValue = new Date(originalValue);
}
if (originalValue && value.getTime() === originalValue.getTime()) {
return;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!