summaryrefslogtreecommitdiff
path: root/CoreWiki/wwwroot/js/site.js
diff options
context:
space:
mode:
Diffstat (limited to 'CoreWiki/wwwroot/js/site.js')
-rw-r--r--CoreWiki/wwwroot/js/site.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/CoreWiki/wwwroot/js/site.js b/CoreWiki/wwwroot/js/site.js
index ac49c18..02fb148 100644
--- a/CoreWiki/wwwroot/js/site.js
+++ b/CoreWiki/wwwroot/js/site.js
@@ -2,3 +2,11 @@
// for details on configuring this project to bundle and minify static web assets.
// 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);
+ ts.textContent = moment(date).format('LLL');
+ }
+})(); \ No newline at end of file