]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Colon has been approved as separator between hours, minutes and seconds
authorSigurd Gartmann <sigurdga@sigurdga.no>
Wed, 8 Jul 2015 21:15:13 +0000 (23:15 +0200)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 9 Nov 2015 04:13:38 +0000 (20:13 -0800)
This has been part of the approved ISO 8601 standard for several years, and was
officially taken into the language in 2014 (source:
http://www.korrekturavdelingen.no/K4Punktum.htm).

According to the ISO standard, hours should be noted between 00 and 24, so now
using HH for hours.

locale/nb.js

index 966619cd79f583ecf7283127b6c2431bdbdae3a9..7e54daae36405504428b00a559936fd26510a7e0 100644 (file)
@@ -17,8 +17,8 @@
         weekdaysShort : 'søn_man_tirs_ons_tors_fre_lør'.split('_'),
         weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
         longDateFormat : {
-            LT : 'H.mm',
-            LTS : 'H.mm.ss',
+            LT : 'HH:mm',
+            LTS : 'HH:mm:ss',
             L : 'DD.MM.YYYY',
             LL : 'D. MMMM YYYY',
             LLL : 'D. MMMM YYYY [kl.] H.mm',
@@ -57,4 +57,4 @@
 
     return nb;
 
-}));
\ No newline at end of file
+}));