From 14be9c8b4141ef47696c0998e0c7996d920dd9be Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 29 Sep 2014 21:47:19 +0400 Subject: [PATCH] Improved l10n for time format #490 --- app/js/filters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/filters.js b/app/js/filters.js index 3ea481d1..29a1ebb8 100644 --- a/app/js/filters.js +++ b/app/js/filters.js @@ -63,7 +63,7 @@ angular.module('myApp.filters', ['myApp.i18n']) var ticks = timestamp * 1000, diff = Math.abs(tsNow() - ticks), - format = 'HH:mm'; + format = 'shortTime'; if (diff > 518400000) { // 6 days format = 'shortDate'; @@ -78,7 +78,7 @@ angular.module('myApp.filters', ['myApp.i18n']) .filter('time', ['$filter', function($filter) { var cachedDates = {}, dateFilter = $filter('date'), - format = Config.Mobile ? 'HH:mm' : 'HH:mm:ss'; + format = Config.Mobile ? 'shortTime' : 'mediumTime'; return function (timestamp) { if (cachedDates[timestamp]) {