comparison mod_http_muc_log/http_muc_log.html @ 1915:5e65c91c07c4

mod_http_muc_log: Produce local timestamps in local format
author Kim Alvefur <zash@zash.se>
date Tue, 20 Oct 2015 14:37:46 +0200
parents 3f3a5daf31cc
children fed0a71a5e68
comparison
equal deleted inserted replaced
1914:b01d60dfa405 1915:5e65c91c07c4
92 var i = 0, tag, date; 92 var i = 0, tag, date;
93 while(timeTags[i]) { 93 while(timeTags[i]) {
94 tag = timeTags[i++]; 94 tag = timeTags[i++];
95 if(date = tag.getAttribute("datetime")) { 95 if(date = tag.getAttribute("datetime")) {
96 date = new Date(date); 96 date = new Date(date);
97 tag.textContent = date.toLocaleTimeString(); 97 tag.textContent = date.toLocaleTimeString(navigator.language);
98 tag.setAttribute("title", date.toString()); 98 tag.setAttribute("title", date.toString());
99 } 99 }
100 } 100 }
101 })(); 101 })();
102 </script> 102 </script>