Browse Source

Apply user timezone for the title attribute of .time-ago (#4693)

master
unarist 7 years ago
committed by Eugen Rochko
parent
commit
fb8aa2b3ba
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/javascript/packs/public.js

+ 1
- 0
app/javascript/packs/public.js View File

@ -35,6 +35,7 @@ function main() {
[].forEach.call(document.querySelectorAll('time.time-ago'), (content) => {
const datetime = new Date(content.getAttribute('datetime'));
content.title = dateTimeFormat.format(datetime);
content.textContent = relativeFormat.format(datetime);
});
});

Loading…
Cancel
Save