Skip to content

Commit

Permalink
Merge pull request #307 from kinvolk/use_generic_date_for_instance
Browse files Browse the repository at this point in the history
frontend: Show the full date in the instance details view
  • Loading branch information
joaquimrocha authored Nov 23, 2020
2 parents cd413c4 + ccc86be commit 1959015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/js/constants/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function getMinuteDifference(date1, date2) {
}

export function makeLocaleTime(timestamp, opts = {}) {
const {useDate = true, showTime = true, dateFormat = {weekday: 'short', day: 'numeric'}} = opts;
const {useDate = true, showTime = true, dateFormat = {}} = opts;
const date = new Date(timestamp);
const formattedDate = date.toLocaleDateString('default', dateFormat);
const timeFormat = date.toLocaleString('default', { hour: '2-digit', minute: '2-digit' });
Expand Down

0 comments on commit 1959015

Please sign in to comment.