From: Mindaugas Mozūras Date: Sat, 25 Jan 2014 17:22:18 +0000 (+0200) Subject: Fix lang/lt nominative weekday detection X-Git-Tag: 2.6.0~42^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36962cee1bfc71d97db5f441ade726f0f8f14e39;p=thirdparty%2Fmoment.git Fix lang/lt nominative weekday detection Not actually using it in production, so only noticed because of: https://github.com/moment/moment/pull/1424 --- diff --git a/lang/lt.js b/lang/lt.js index 1cf6457d2..3377375cd 100644 --- a/lang/lt.js +++ b/lang/lt.js @@ -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) + "į";