Mercurial > prosody-modules
changeset 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 (2015-10-20) |
parents | b01d60dfa405 |
children | 56f6a642fc67 |
files | mod_http_muc_log/http_muc_log.html |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_muc_log/http_muc_log.html Mon Oct 19 17:08:45 2015 +0200 +++ b/mod_http_muc_log/http_muc_log.html Tue Oct 20 14:37:46 2015 +0200 @@ -94,7 +94,7 @@ tag = timeTags[i++]; if(date = tag.getAttribute("datetime")) { date = new Date(date); -tag.textContent = date.toLocaleTimeString(); +tag.textContent = date.toLocaleTimeString(navigator.language); tag.setAttribute("title", date.toString()); } }