Fix #8257: Locale not showing 24h/12h mode.

* apply patch from 'luckypower', that fixes the problem
  in BFormattingConventions - thanks!

Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
This commit is contained in:
luckypower 2012-03-28 22:39:49 +02:00 committed by Oliver Tappe
parent 6552b1085c
commit 5dca884fa5
1 changed files with 2 additions and 1 deletions

View File

@ -558,9 +558,10 @@ BFormattingConventions::Use24HourClock() const
GetTimeFormat(B_MEDIUM_TIME_FORMAT, format);
fCachedUse24HourClock
= FormatUsesAmPm(format) ? CLOCK_HOURS_12 : CLOCK_HOURS_24;
return fCachedUse24HourClock == CLOCK_HOURS_24;
}
return fCachedUse24HourClock == CLOCK_HOURS_24;
return fExplicitUse24HourClock == CLOCK_HOURS_24;
}