0
1
Fork 0

Htk.Calendar fix for invalid dates

This commit is contained in:
Juan Ferrer 2021-01-22 20:07:52 +01:00
parent e53ed0d67a
commit b09e345e62
3 changed files with 9 additions and 9 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.407.37) stable; urgency=low
hedera-web (1.407.38) stable; urgency=low
* Initial Release.

View File

@ -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);

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.407.37",
"version": "1.407.38",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {