Htk.Calendar fix for invalid dates
gitea/hedera-web/pipeline/head This commit looks good Details

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. * Initial Release.

View File

@ -214,7 +214,6 @@ module.exports = new Class({
if (cell.enabled) { if (cell.enabled) {
this.selectCell(cellIndex); this.selectCell(cellIndex);
var newDate = new Date(this.year, this.month, cell.day); var newDate = new Date(this.year, this.month, cell.day);
if (this.value) { if (this.value) {
@ -222,12 +221,13 @@ module.exports = new Class({
? this.value ? this.value
: new Date(this.value); : new Date(this.value);
newDate.setHours( if (!isNaN(orgDate.getTime()))
orgDate.getHours(), newDate.setHours(
orgDate.getMinutes(), orgDate.getHours(),
orgDate.getSeconds(), orgDate.getMinutes(),
orgDate.getMilliseconds() orgDate.getSeconds(),
); orgDate.getMilliseconds()
);
} }
this.valueChanged(newDate); this.valueChanged(newDate);

View File

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