diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2023-12-01 14:09:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 14:09:01 +0200 |
commit | dbdd52c835d5cf6eae7f4f4c00684094748e2c52 (patch) | |
tree | 2cac60b406e6ec242eb550311917a2907db67243 /layouts/partials/js.html | |
parent | a698a01934c5975fa46672e775c24d81d1e6b817 (diff) | |
parent | 0671bb2dcdc6aea97e40bab2e8d709925c2b6471 (diff) |
use dateFormat instead of .Date.Format for better localization #274 from MirMiz/dateformat-fix
Diffstat (limited to 'layouts/partials/js.html')
-rw-r--r-- | layouts/partials/js.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/js.html b/layouts/partials/js.html index 2e06196..b7dad07 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -103,7 +103,7 @@ var elements = document.querySelectorAll('.relative-time'); for (var i = 0; i < elements.length; i++) { var element = elements[i]; - var time = Date.parse(element.getAttribute('title')); + var time = Date.parse(element.dataset.date); var html = element.getAttribute('data-time-prefix') || ''; |