forked from verdnatura/hedera-web
Htk.Calendar fix for invalid dates
This commit is contained in:
parent
e53ed0d67a
commit
b09e345e62
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.407.37) stable; urgency=low
|
||||
hedera-web (1.407.38) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -214,7 +214,6 @@ module.exports = new Class({
|
|||
|
||||
if (cell.enabled) {
|
||||
this.selectCell(cellIndex);
|
||||
|
||||
var newDate = new Date(this.year, this.month, cell.day);
|
||||
|
||||
if (this.value) {
|
||||
|
@ -222,12 +221,13 @@ module.exports = new Class({
|
|||
? this.value
|
||||
: new Date(this.value);
|
||||
|
||||
newDate.setHours(
|
||||
orgDate.getHours(),
|
||||
orgDate.getMinutes(),
|
||||
orgDate.getSeconds(),
|
||||
orgDate.getMilliseconds()
|
||||
);
|
||||
if (!isNaN(orgDate.getTime()))
|
||||
newDate.setHours(
|
||||
orgDate.getHours(),
|
||||
orgDate.getMinutes(),
|
||||
orgDate.getSeconds(),
|
||||
orgDate.getMilliseconds()
|
||||
);
|
||||
}
|
||||
|
||||
this.valueChanged(newDate);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hedera-web",
|
||||
"version": "1.407.37",
|
||||
"version": "1.407.38",
|
||||
"description": "Verdnatura web page",
|
||||
"license": "GPL-3.0",
|
||||
"repository": {
|
||||
|
|
Loading…
Reference in New Issue