From 60b73d8755982f869fcf249d7260b1b9d7872be6 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 30 Aug 2016 00:04:12 +0200 Subject: [PATCH] Fix #3025 --- OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java | 4 ++-- .../plus/mapcontextmenu/builders/AmenityMenuBuilder.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java index 5f08a8dab9..dc579ad683 100644 --- a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java +++ b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java @@ -254,14 +254,14 @@ public class OpeningHoursParser { return s.substring(0, s.length() - 2); } - public String toLocalStringNoMonths() { + public String toLocalString() { StringBuilder s = new StringBuilder(); if (rules.isEmpty()) { return ""; } for (OpeningHoursRule r : rules) { - s.append(r.toLocalRuleString()).append(";"); + s.append(r.toLocalRuleString()).append("; "); } return s.substring(0, s.length() - 2); diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java index f1b3822734..6661840567 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/builders/AmenityMenuBuilder.java @@ -248,7 +248,7 @@ public class AmenityMenuBuilder extends MenuBuilder { OpeningHoursParser.OpeningHours rs = OpeningHoursParser.parseOpenedHours(amenity.getOpeningHours()); if (rs != null) { - vl = rs.toLocalStringNoMonths(); + vl = rs.toLocalString(); Calendar inst = Calendar.getInstance(); inst.setTimeInMillis(System.currentTimeMillis()); boolean opened = rs.isOpenedForTime(inst);