]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix lang/lt nominative weekday detection 1444/head
authorMindaugas Mozūras <mindaugas.mozuras@gmail.com>
Sat, 25 Jan 2014 17:22:18 +0000 (19:22 +0200)
committerMindaugas Mozūras <mindaugas.mozuras@gmail.com>
Sat, 25 Jan 2014 17:22:18 +0000 (19:22 +0200)
Not actually using it in production, so only noticed because of:
https://github.com/moment/moment/pull/1424

lang/lt.js

index 1cf6457d20b109f9bc1ffc0867d0c7f39f5f6c1b..3377375cd4b77d2615e96bb5e15cf2438ed73aa1 100644 (file)
@@ -61,7 +61,7 @@
     }
 
     function relativeWeekDay(moment, format) {
-        var nominative = format.indexOf('dddd LT') === -1,
+        var nominative = format.indexOf('dddd HH:mm') === -1,
             weekDay = weekDays[moment.weekday()];
 
         return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + "į";