Fix #8257: Locale not showing 24h/12h mode.
* apply patch from 'luckypower', that fixes the problem in BFormattingConventions - thanks! Signed-off-by: Oliver Tappe <[email protected]>
This commit is contained in:
@@ -558,9 +558,10 @@ BFormattingConventions::Use24HourClock() const
|
|||||||
GetTimeFormat(B_MEDIUM_TIME_FORMAT, format);
|
GetTimeFormat(B_MEDIUM_TIME_FORMAT, format);
|
||||||
fCachedUse24HourClock
|
fCachedUse24HourClock
|
||||||
= FormatUsesAmPm(format) ? CLOCK_HOURS_12 : CLOCK_HOURS_24;
|
= FormatUsesAmPm(format) ? CLOCK_HOURS_12 : CLOCK_HOURS_24;
|
||||||
|
return fCachedUse24HourClock == CLOCK_HOURS_24;
|
||||||
}
|
}
|
||||||
|
|
||||||
return fCachedUse24HourClock == CLOCK_HOURS_24;
|
return fExplicitUse24HourClock == CLOCK_HOURS_24;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user