From f3f1498f8084993bdd9a0311b82a8df3fa3e0e98 Mon Sep 17 00:00:00 2001 From: paladox Date: Thu, 20 Nov 2014 18:58:28 +0000 Subject: Update Moment.js from 2.8.3 to 2.8.4 Project site * http://momentjs.com * https://github.com/moment/moment/ File source * https://github.com/moment/moment/tree/2.8.4 Changelog * https://github.com/moment/moment/blob/2.8.4/CHANGELOG.md Difference between 2.8.3 and 2.8.4 2.8.4 Features * #2000 Add LTS localised format that includes seconds * #1960 added formatToken 'x' for unix offset in milliseconds #1938 * #1965 Support 24:00:00.000 to mean next day, at midnight. * #2002 Accept 'date' key when creating moment with object * #2009 Use native toISOString when we can Bugfixes * #2004 Fix makeAs to work with zoned moments * #2001 moment.utc(string) falling back to Date works properly * #1928 IE11 module == null * #1952 New implementation of isBefore/isSame/isAfter * #1992 Fix strict month parsing of abbreviated/full months * #2003 Detect hours above 12 with h/hh tokens * #1974 Locale export for meteor server environment * #1925 Fix duration as getters (years and months convert to whole days) * #2008 Fix endOf handling of no-arg and ms * #2010 Update deprecation warning for moment().lang() Locale improvements * #2015 remove Uhr from german format * #1933 improved russian lastWeek translations * #2013 changed month abbreviations in russian * #1971 Fix italian calendar time * #1967 Fix catalan ordinals * #1898 Bosnian translation of August * #1771 Update greek seconds string * #1961 Add a script to prepare moment for npm publish * #2016 Fix long date format for Czech Change-Id: I136a08194476ac01af7495c8f8e1e7ea1e140973 --- resources/lib/moment/locale/hr.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'resources/lib/moment/locale/hr.js') diff --git a/resources/lib/moment/locale/hr.js b/resources/lib/moment/locale/hr.js index 9e3f6fa30f50..65264dc2fdbf 100644 --- a/resources/lib/moment/locale/hr.js +++ b/resources/lib/moment/locale/hr.js @@ -10,7 +10,7 @@ } else if (typeof exports === 'object') { module.exports = factory(require('../moment')); // Node } else { - factory(window.moment); // Browser global + factory((typeof global !== 'undefined' ? global : this).moment); // node or other global } }(function (moment) { function translate(number, withoutSuffix, key) { @@ -74,6 +74,7 @@ weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'), longDateFormat : { LT : 'H:mm', + LTS : 'LT:ss', L : 'DD. MM. YYYY', LL : 'D. MMMM YYYY', LLL : 'D. MMMM YYYY LT', @@ -130,6 +131,7 @@ y : 'godinu', yy : translate }, + ordinalParse: /\d{1,2}\./, ordinal : '%d.', week : { dow : 1, // Monday is the first day of the week. -- cgit v1.2.3