]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Changed bulgarian time format to 24h 1157/head
authorIskren Chernev <iskren.chernev@gmail.com>
Wed, 2 Oct 2013 09:16:40 +0000 (13:16 +0400)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 2 Oct 2013 09:16:40 +0000 (13:16 +0400)
As requested by #1148

lang/bg.js
test/lang/bg.js

index 87999cf67109c2b2da00996c50fa8625f7133e29..f47ed65a9858d92488242b06d84770a3f9900746 100644 (file)
@@ -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",
index 616a68b38fb32b506f470048a2329b09a0750f26..732464e7ef787b0d048617af2fa4a15a97d4278c 100644 (file)
@@ -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();
     }
 };