about summary refs log tree commit diff
path: root/app/javascript/packs
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-02-06 22:48:26 +0100
committerGitHub <noreply@github.com>2020-02-06 22:48:26 +0100
commit96ec90b986c8a2783135f123c10062725d274733 (patch)
tree1cbb8b756a2e4d0770c19b834ede0326f99a3dcc /app/javascript/packs
parentccaefd139d33f2f0bf4d097131bcf91960bee956 (diff)
parentfe9a124f5a9f3a7cb6cfba141245cccb88c7dfbe (diff)
Merge pull request #1278 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/packs')
-rw-r--r--app/javascript/packs/public.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/packs/public.js b/app/javascript/packs/public.js
index 640f0af0a..13cb5d548 100644
--- a/app/javascript/packs/public.js
+++ b/app/javascript/packs/public.js
@@ -65,7 +65,7 @@ function main() {
       content.textContent = timeAgoString({
         formatMessage: ({ id, defaultMessage }, values) => (new IntlMessageFormat(messages[id] || defaultMessage, locale)).format(values),
         formatDate: (date, options) => (new Intl.DateTimeFormat(locale, options)).format(date),
-      }, datetime, now, now.getFullYear());
+      }, datetime, now, now.getFullYear(), content.getAttribute('datetime').includes('T'));
     });
 
     const reactComponents = document.querySelectorAll('[data-component]');