xi-conversations

Minimal clone of thunderbird conversations
git clone https://git.ce9e.org/xi-conversations.git

commit
4619909cc391c8509f65d40bbc40ffc732a1809e
parent
db0592b40d6e612cbce1d2b6377599274d7b2a08
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-06-29 06:39
workaround: hardcode locale for date format

Diffstat

M src/js/util.js 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/src/js/util.js b/src/js/util.js

@@ -55,9 +55,9 @@ var createDate = function(date) {
   55    55 	var e = document.createElement('time');
   56    56 	e.className = 'date';
   57    57 	if (date.toDateString() === now.toDateString()) {
   58    -1 		e.textContent = date.toLocaleTimeString();
   -1    58 		e.textContent = date.toLocaleTimeString('sv');
   59    59 	} else {
   60    -1 		e.textContent = date.toLocaleDateString();
   -1    60 		e.textContent = date.toLocaleDateString('sv');
   61    61 	}
   62    62 	e.title = date.toLocaleString();
   63    63 	return e;