mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 15:43:24 +08:00
修复toLocaleString 0点显示24点
This commit is contained in:
parent
65ade4b996
commit
c7de19d3b5
|
@ -146,12 +146,11 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{record.last_execution_time
|
{record.last_execution_time
|
||||||
? new Date(record.last_execution_time * 1000).toLocaleString(
|
? new Date(record.last_execution_time * 1000)
|
||||||
language,
|
.toLocaleString(language, {
|
||||||
{
|
|
||||||
hour12: false,
|
hour12: false,
|
||||||
},
|
})
|
||||||
)
|
.replace(' 24:', ' 00:')
|
||||||
: '-'}
|
: '-'}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
@ -198,9 +197,11 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
|
||||||
display: 'block',
|
display: 'block',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{record.nextRunTime.toLocaleString(language, {
|
{record.nextRunTime
|
||||||
|
.toLocaleString(language, {
|
||||||
hour12: false,
|
hour12: false,
|
||||||
})}
|
})
|
||||||
|
.replace(' 24:', ' 00:')}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user