From 8b63ef87a110d503a566cb056e132e8d83dc21df Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 21 Mar 2012 22:51:38 +0100 Subject: [PATCH] fix date formating in users dialog, fixes #673 --- static/js/pandora/usersDialog.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/usersDialog.js b/static/js/pandora/usersDialog.js index f4e81835..2e3df3b4 100644 --- a/static/js/pandora/usersDialog.js +++ b/static/js/pandora/usersDialog.js @@ -270,9 +270,8 @@ pandora.ui.usersDialog = function() { }, { align: 'right', - // fixme: there should be a better option for dates format: function(value) { - return value.replace(/[TZ]/g, ' ') + return Ox.formatDate(value, "%Y-%m-%d %H:%M:%S"); }, id: 'firstseen', operator: '-', @@ -283,7 +282,7 @@ pandora.ui.usersDialog = function() { { align: 'right', format: function(value) { - return value.replace(/[TZ]/g, ' ') + return Ox.formatDate(value, "%Y-%m-%d %H:%M:%S"); }, id: 'lastseen', operator: '-',