fix date for other locales

This commit is contained in:
Stefan Breunig
2013-02-05 19:47:44 +01:00
parent 3107a48ca6
commit 21ea5beabd
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ window.unixTimeToString = function(time, full) {
window.unixTimeToHHmm = function(time) {
if(!time) return null;
var d = new Date(typeof time === 'string' ? parseInt(time) : time);
return d.toLocaleTimeString().slice(0, -3);
return d.getHours() + ':' + d.getSeconds();
}