diff options
Diffstat (limited to 'CoreWiki/wwwroot/js')
| -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 |
