Fix for some customfield dates going missing

This commit is contained in:
Nathan Gray 2013-06-18 23:24:14 +00:00
parent 1b3c8d15c8
commit 683a624710

View File

@ -157,7 +157,7 @@ var et2_date = et2_inputWidget.extend(
this.date.setTime(text.valueOf()+localOffset);
_value = Math.round(this.date.valueOf() / 1000);
}
} else if (typeof _value == 'number') {
} else if (typeof _value == 'number' || !isNaN(_value)) {
// Timestamp
// JS dates use milliseconds
this.date.setTime(parseInt(_value)*1000);