Skip to content

Commit

Permalink
✨ feat: print time detail
Browse files Browse the repository at this point in the history
  • Loading branch information
yunsii committed Mar 20, 2024
1 parent 8dd550b commit fad95d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/index/components/MonitorPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const MonitorPanel: React.FC<IMonitorPanelProps> = (props) => {
{allOperational ? 'All Systems Operational' : 'Not All Systems Operational'}
</div>
{!!data.lastUpdate && (
<div className='text-xs font-light'>
<div className='text-xs font-light' title={new Date(data.lastUpdate.time).toLocaleString()}>
checked
{' '}
{Math.round((Date.now() - data.lastUpdate.time) / 1000)}
Expand Down Expand Up @@ -72,7 +72,7 @@ const MonitorPanel: React.FC<IMonitorPanelProps> = (props) => {

const lastCheckInfo = [{
key: 'Last Check Time',
value: monitorData.lastCheck.time ? new Date(monitorData.lastCheck.time).toLocaleDateString() : null,
value: monitorData.lastCheck.time ? new Date(monitorData.lastCheck.time).toLocaleString() : null,
}, {
key: 'Last Check Operational',
value: monitorData.lastCheck.operational.toString(),
Expand Down

0 comments on commit fad95d1

Please sign in to comment.