about summary refs log tree commit diff
path: root/app/javascript/packs
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2017-08-26 00:21:16 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-08-25 17:21:16 +0200
commitfb8aa2b3bac122f819b07c7f9461b26cc369c621 (patch)
treeef65d60fb3924f2f5433cd99b546420a9734f384 /app/javascript/packs
parent00f9f16f94feeaf2fae9a5a1a7bcb3a06b86a036 (diff)
Apply user timezone for the title attribute of .time-ago (#4693)
Diffstat (limited to 'app/javascript/packs')
-rw-r--r--app/javascript/packs/public.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js
index da1f550fc..d8a0f4eee 100644
--- a/app/javascript/packs/public.js
+++ b/app/javascript/packs/public.js
@@ -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);
     });
   });