mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +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
|
||||
? new Date(record.last_execution_time * 1000).toLocaleString(
|
||||
language,
|
||||
{
|
||||
? new Date(record.last_execution_time * 1000)
|
||||
.toLocaleString(language, {
|
||||
hour12: false,
|
||||
},
|
||||
)
|
||||
})
|
||||
.replace(' 24:', ' 00:')
|
||||
: '-'}
|
||||
</span>
|
||||
);
|
||||
|
@ -198,9 +197,11 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
|
|||
display: 'block',
|
||||
}}
|
||||
>
|
||||
{record.nextRunTime.toLocaleString(language, {
|
||||
{record.nextRunTime
|
||||
.toLocaleString(language, {
|
||||
hour12: false,
|
||||
})}
|
||||
})
|
||||
.replace(' 24:', ' 00:')}
|
||||
</span>
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user