diff options
author | Thibaut Girka <thib@sitedethib.com> | 2020-02-06 21:36:38 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-02-06 21:36:38 +0100 |
commit | 1a54b9b99e85e9d6b3c52bfe654659019960eb24 (patch) | |
tree | 33fe0d6c546dade46cf7842959feff686db4f909 /app/javascript/packs/public.js | |
parent | ccaefd139d33f2f0bf4d097131bcf91960bee956 (diff) | |
parent | aeb6efbb03cd98c0425d094677fc748e0c36c240 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/javascript/packs/public.js')
-rw-r--r-- | app/javascript/packs/public.js | 2 |
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]'); |