Web:Cron Added local
This commit is contained in:
parent
659217ffd6
commit
0b103ec1bf
@ -68,13 +68,13 @@ export const getPeriodFromCronParts = (cronParts: number[][]): PeriodType => {
|
||||
return "Hour";
|
||||
};
|
||||
|
||||
export const fixFormatValue = (value: number) => {
|
||||
let result = value.toString();
|
||||
|
||||
if (value < 10) {
|
||||
result = result.padStart(2, "0");
|
||||
}
|
||||
|
||||
export const fixFormatValue = (value: number, local: string) => {
|
||||
let result = value.toLocaleString(local, {
|
||||
minimumIntegerDigits: 2,
|
||||
minimumFractionDigits: 0,
|
||||
maximumFractionDigits: 0,
|
||||
useGrouping: false,
|
||||
});
|
||||
return result;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user