Fix bug with date

This commit is contained in:
Victor Shcherb 2012-02-10 00:27:20 +01:00
parent 8e80767537
commit 907c7d6ee0

View file

@ -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;