the number of digits shown for hours, minutes, and seconds in the time picker depends on the user's language settings

This commit is contained in:
MaysWind
2025-07-23 01:06:34 +08:00
parent 6050f5deab
commit c5aa37037f
3 changed files with 44 additions and 22 deletions
-8
View File
@@ -85,14 +85,6 @@ export function getYearMonthStringFromYear0BasedMonthObject(yearMonth: Year0Base
return `${yearMonth.year}-${yearMonth.month0base + 1}`;
}
export function getTwoDigitsString(value: number): string {
if (value < 10) {
return '0' + value;
} else {
return value.toString();
}
}
export function getHourIn12HourFormat(hour: number): number {
hour = hour % 12;