Skip to content

Commit

Permalink
Show full ISO timestamp in debug client leg times
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Sep 18, 2024
1 parent 349a992 commit 67a66f2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions client/src/components/ItineraryList/LegTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ export function LegTime({
}) {
return aimedTime !== expectedTime ? (
<>
<span style={{ color: 'red' }}>{formatTime(expectedTime, 'short')}</span>
<span style={{ textDecoration: 'line-through' }}>{formatTime(aimedTime, 'short')}</span>
<span title={expectedTime} style={{ color: 'red' }}>
{formatTime(expectedTime, 'short')}
</span>
<span title={aimedTime} style={{ textDecoration: 'line-through' }}>
{formatTime(aimedTime, 'short')}
</span>
</>
) : (
<span>
<span title={expectedTime}>
{formatTime(expectedTime, 'short')}
{hasRealtime && <span> (on time)</span>}
</span>
Expand Down

0 comments on commit 67a66f2

Please sign in to comment.