mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
fix cannot selecting time when the number system was not Arabic numerals
This commit is contained in:
+4
-4
@@ -1253,11 +1253,11 @@ export function getFullMonthDateRange(minTime: number, maxTime: number, firstDay
|
||||
return dateRange;
|
||||
}
|
||||
|
||||
export function getCombinedDateAndTimeValues(date: Date, hour: string, minute: string, second: string, meridiemIndicator: string, is24Hour: boolean): Date {
|
||||
export function getCombinedDateAndTimeValues(date: Date, numeralSystem: NumeralSystem, hour: string, minute: string, second: string, meridiemIndicator: string, is24Hour: boolean): Date {
|
||||
const newDateTime = new Date(date.valueOf());
|
||||
let hours = parseInt(hour);
|
||||
const minutes = parseInt(minute);
|
||||
const seconds = parseInt(second);
|
||||
let hours = numeralSystem.parseInt(hour);
|
||||
const minutes = numeralSystem.parseInt(minute);
|
||||
const seconds = numeralSystem.parseInt(second);
|
||||
|
||||
if (!is24Hour) {
|
||||
if (hours === 12) {
|
||||
|
||||
Reference in New Issue
Block a user