diff options
author | Starfall <root@starfall.blue> | 2020-02-13 17:55:53 -0600 |
---|---|---|
committer | Starfall <root@starfall.blue> | 2020-02-13 17:55:53 -0600 |
commit | 5902299384d15249fe4b84b8761d4a49f3c7f6fd (patch) | |
tree | 66f1db08a2f6f9ae2254ba7a81b71835039d671e /app/javascript/flavours/glitch/packs | |
parent | 6d24d3bcb84abd04f31da95f97f6d60ef0afdc00 (diff) | |
parent | 0cbd6d696b8937066cde297ad2eae4b558353b7c (diff) |
Merge branch 'glitch'
Diffstat (limited to 'app/javascript/flavours/glitch/packs')
-rw-r--r-- | app/javascript/flavours/glitch/packs/public.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/packs/public.js b/app/javascript/flavours/glitch/packs/public.js index d1adfb17a..d8a97704f 100644 --- a/app/javascript/flavours/glitch/packs/public.js +++ b/app/javascript/flavours/glitch/packs/public.js @@ -62,7 +62,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]'); |