diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-12-22 16:02:41 +0100 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-12-22 16:02:41 +0100 |
| commit | 1a96616699ab41bf6343bc1acc45a836c3e6caf3 (patch) | |
| tree | aff3d8bb8418355d3a8279024afaa13f196a0506 /CoreWiki/wwwroot | |
| parent | 7fefe217c8462444ecb9806599e70afe2a7102ea (diff) | |
Backup
Diffstat (limited to 'CoreWiki/wwwroot')
| -rw-r--r-- | CoreWiki/wwwroot/js/site.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CoreWiki/wwwroot/js/site.js b/CoreWiki/wwwroot/js/site.js index 02fb148..244a5c5 100644 --- a/CoreWiki/wwwroot/js/site.js +++ b/CoreWiki/wwwroot/js/site.js @@ -3,10 +3,10 @@ // Write your JavaScript code. (function () { - var timeStamps = document.querySelectorAll(".timeStampValue"); - for (var ts of timeStamps) { - var thisTimeStamp = ts.getAttribute("data-value"); - var date = new Date(thisTimeStamp); + const timeStamps = document.querySelectorAll(".timeStampValue"); + for (const ts of timeStamps) { + const thisTimeStamp = ts.getAttribute("data-value"); + const date = new Date(thisTimeStamp); ts.textContent = moment(date).format('LLL'); } })();
\ No newline at end of file |
