Skip to content

Commit

Permalink
Merge pull request #1285 from Beh01der/develop
Browse files Browse the repository at this point in the history
Correctly display relative time for non-UTC timezones
  • Loading branch information
fiftin authored Jun 27, 2023
2 parents 62a771f + b65eb63 commit ad17684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const convert = new Convert();
axios.defaults.baseURL = document.baseURI;
Vue.config.productionTip = false;

Vue.filter('formatDate', (value) => (value ? moment(String(value)).fromNow() : '—'));
Vue.filter('formatDate', (value) => (value ? moment.utc(String(value)).local(true).fromNow() : '—'));
Vue.filter('formatTime', (value) => (value ? moment(String(value)).format('LTS') : '—'));
Vue.filter('formatLog', (value) => (value ? convert.toHtml(String(value)) : value));

Expand Down

0 comments on commit ad17684

Please sign in to comment.