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
parent 1751:3f3a5daf31cc
child 2083: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>