Fix bug with date
This commit is contained in:
parent
8e80767537
commit
907c7d6ee0
1 changed files with 2 additions and 2 deletions
|
@ -297,9 +297,9 @@ public class MapInfoLayer extends OsmandMapLayer {
|
|||
if (Math.abs(toFindTime - cachedLeftTime) > 30000) {
|
||||
cachedLeftTime = toFindTime;
|
||||
if (DateFormat.is24HourFormat(map)) {
|
||||
setText(DateFormat.format("kk:mm", toFindTime).toString(), null); //$NON-NLS-1$
|
||||
setText(DateFormat.format("k:mm", toFindTime).toString(), null); //$NON-NLS-1$
|
||||
} else {
|
||||
setText(DateFormat.format("k:mm", toFindTime).toString(),
|
||||
setText(DateFormat.format("h:mm", toFindTime).toString(),
|
||||
DateFormat.format("aa", toFindTime).toString()); //$NON-NLS-1$
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue