summary refs log tree commit diff
path: root/_layouts
diff options
context:
space:
mode:
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html2
-rw-r--r--_layouts/post.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 7bcd897..0af8aad 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -29,7 +29,7 @@
   </script>
   {% endif %}
   <script>
-    var lastUpdated = new Date("{{ site.time | date: "%FT%T%z" }}");
+    var lastUpdated = new Date("{{ site.time | date_to_xmlschema }}");
     var BlogAPI = "https://summary.mayx.eu.org";
     function getSearchJSON(callback) {
       var searchData = JSON.parse(localStorage.getItem("blog_" + lastUpdated.valueOf()));
diff --git a/_layouts/post.html b/_layouts/post.html
index de38995..a426aad 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -12,7 +12,7 @@ layout: default
   <br /><br />
 </div>
 <script>
-  BirthDay = new Date("{{ page.date | date: "%m/%d/%Y" }} 00:00:00");
+  BirthDay = new Date("{{ page.date | date_to_xmlschema }}");
   today = new Date();
   timeold = (today.getTime() - BirthDay.getTime());
   secondsold = Math.floor(timeold / 1000);