Htk.Calendar fix for invalid dates
gitea/hedera-web/pipeline/head This commit looks good
Details
gitea/hedera-web/pipeline/head This commit looks good
Details
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.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in New Issue