This commit is contained in:
Victor Shcherb 2018-03-19 13:43:45 +02:00
parent e4559accfd
commit 8333eaf17f

View file

@ -39,6 +39,7 @@ public class OpeningHoursParser {
DateFormatSymbols dateFormatSymbols = DateFormatSymbols.getInstance(Locale.US); DateFormatSymbols dateFormatSymbols = DateFormatSymbols.getInstance(Locale.US);
monthsStr = dateFormatSymbols.getShortMonths(); monthsStr = dateFormatSymbols.getShortMonths();
daysStr = getTwoLettersStringArray(dateFormatSymbols.getShortWeekdays()); daysStr = getTwoLettersStringArray(dateFormatSymbols.getShortWeekdays());
dateFormatSymbols = DateFormatSymbols.getInstance(); dateFormatSymbols = DateFormatSymbols.getInstance();
localMothsStr = dateFormatSymbols.getShortMonths(); localMothsStr = dateFormatSymbols.getShortMonths();
localDaysStr = getTwoLettersStringArray(dateFormatSymbols.getShortWeekdays()); localDaysStr = getTwoLettersStringArray(dateFormatSymbols.getShortWeekdays());
@ -78,8 +79,8 @@ public class OpeningHoursParser {
String[] newStrings = new String[strings.length]; String[] newStrings = new String[strings.length];
for (int i = 0; i < strings.length; i++) { for (int i = 0; i < strings.length; i++) {
if (strings[i] != null) { if (strings[i] != null) {
if (strings[i].length() > 2) { if (strings[i].length() > 3) {
newStrings[i] = Algorithms.capitalizeFirstLetter(strings[i].substring(0, 2)); newStrings[i] = Algorithms.capitalizeFirstLetter(strings[i].substring(0, 3));
} else { } else {
newStrings[i] = Algorithms.capitalizeFirstLetter(strings[i]); newStrings[i] = Algorithms.capitalizeFirstLetter(strings[i]);
} }