This commit is contained in:
zhuzichu
2024-09-20 13:38:51 +08:00
parent 86f347edad
commit 29fe40002c
5 changed files with 17 additions and 16 deletions

View File

@ -335,7 +335,7 @@ FluButton {
if (hours === "12") {
hours24 = (period === control.amText) ? 0 : 12;
} else {
hours24 = (period === control.pmText) ? hours24 : hours24 + 12;
hours24 = (period === control.pmText) ? hours24 + 12 : hours24;
}
}
date.setHours(hours24);

View File

@ -335,7 +335,7 @@ FluButton {
if (hours === "12") {
hours24 = (period === control.amText) ? 0 : 12;
} else {
hours24 = (period === control.pmText) ? hours24 : hours24 + 12;
hours24 = (period === control.pmText) ? hours24 + 12 : hours24;
}
}
date.setHours(hours24);