From: Iskren Chernev Date: Wed, 2 Oct 2013 09:16:40 +0000 (+0400) Subject: Changed bulgarian time format to 24h X-Git-Tag: 2.3.0~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e73007f401ac22f991605f75dc7187903d2cf191;p=thirdparty%2Fmoment.git Changed bulgarian time format to 24h As requested by #1148 --- diff --git a/lang/bg.js b/lang/bg.js index 87999cf67..f47ed65a9 100644 --- a/lang/bg.js +++ b/lang/bg.js @@ -18,7 +18,7 @@ weekdaysShort : "нед_пон_вто_сря_чет_пет_съб".split("_"), weekdaysMin : "нд_пн_вт_ср_чт_пт_сб".split("_"), longDateFormat : { - LT : "h:mm", + LT : "H:mm", L : "D.MM.YYYY", LL : "D MMMM YYYY", LLL : "D MMMM YYYY LT", diff --git a/test/lang/bg.js b/test/lang/bg.js index 616a68b38..732464e7e 100644 --- a/test/lang/bg.js +++ b/test/lang/bg.js @@ -39,7 +39,7 @@ exports["lang:bg"] = { "format" : function (test) { test.expect(22); var a = [ - ['dddd, MMMM Do YYYY, h:mm:ss a', 'неделя, февруари 14-ти 2010, 3:25:50 pm'], + ['dddd, MMMM Do YYYY, H:mm:ss', 'неделя, февруари 14-ти 2010, 15:25:50'], ['ddd, hA', 'нед, 3PM'], ['M Mo MM MMMM MMM', '2 2-ри 02 февруари фев'], ['YYYY YY', '2010 10'], @@ -55,12 +55,12 @@ exports["lang:bg"] = { ['[the] DDDo [day of the year]', 'the 45-ти day of the year'], ['L', '14.02.2010'], ['LL', '14 февруари 2010'], - ['LLL', '14 февруари 2010 3:25'], - ['LLLL', 'неделя, 14 февруари 2010 3:25'], + ['LLL', '14 февруари 2010 15:25'], + ['LLLL', 'неделя, 14 февруари 2010 15:25'], ['l', '14.2.2010'], ['ll', '14 фев 2010'], - ['lll', '14 фев 2010 3:25'], - ['llll', 'нед, 14 фев 2010 3:25'] + ['lll', '14 фев 2010 15:25'], + ['llll', 'нед, 14 фев 2010 15:25'] ], b = moment(new Date(2010, 1, 14, 15, 25, 50, 125)), i; @@ -361,12 +361,12 @@ exports["lang:bg"] = { test.done(); }, - + "returns the name of the language" : function (test) { test.expect(1); - + test.equal(require('../../lang/bg'), 'bg', "module should export bg"); - + test.done(); } };