mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user