Skip to content

Commit

Permalink
Navigation: improve car location formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jul 28, 2023
1 parent 8421791 commit a861d4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/Navigation/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,8 @@ class Navigation extends Component {
</div>
</div>
<Typography className={ classes.searchSelectBoxDetails }>
{ isCar && Utils.formatSearchName(searchSelect) }
{', '}
{ Utils.formatSearchDetails(searchSelect) }
</Typography>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function formatDriveDuration(duration) {
export function timeFromNow(ts) {
const dt = (Date.now() - ts) / 1000;
if (dt > 3600 * 24 * 30) {
return dayjs(ts).format('MMM Do YYYY');
return dayjs(ts).format('MMM D YYYY');
} else if (dt > 60) {
return dayjs(ts).fromNow();
} else {
Expand Down

0 comments on commit a861d4b

Please sign in to comment.