Fix #5115
This commit is contained in:
parent
e4559accfd
commit
8333eaf17f
1 changed files with 3 additions and 2 deletions
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue