diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2016-10-19 15:49:07 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2016-10-19 15:49:07 +0300 |
commit | 392bec61f45f963b01cf1859c0ee4e573c2ed832 (patch) | |
tree | 6490dfd24633ef741af1c12ee824a3f0b9fee7c6 /android/src/com/mapswithme/maps/editor/data | |
parent | 29273a11053786519a2ffed0fdc6678d56618400 (diff) |
fix am/pm
Diffstat (limited to 'android/src/com/mapswithme/maps/editor/data')
-rw-r--r-- | android/src/com/mapswithme/maps/editor/data/HoursMinutes.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/src/com/mapswithme/maps/editor/data/HoursMinutes.java b/android/src/com/mapswithme/maps/editor/data/HoursMinutes.java index 7b1a9926b5..0800beee84 100644 --- a/android/src/com/mapswithme/maps/editor/data/HoursMinutes.java +++ b/android/src/com/mapswithme/maps/editor/data/HoursMinutes.java @@ -38,7 +38,7 @@ public class HoursMinutes implements Parcelable return String.format(Locale.US, "%02d:%02d", hours, minutes); Calendar calendar = new GregorianCalendar(); - calendar.set(Calendar.HOUR, (int)hours); + calendar.set(Calendar.HOUR_OF_DAY, (int)hours); calendar.set(Calendar.MINUTE, (int)minutes); SimpleDateFormat fmt12 = new SimpleDateFormat("hh:mm a"); |