Fix BDate::LongDayName()
As PulkoMandy found out B_LONG_DATE_FORMAT corresponds to ICU's
"Abbreviated", while we want B_FULL_DATE_FORMAT (ICU's "Wide").
That is, we want e.g. "Saturday", not "Sat".
Used in WebPositive's "History" menu.
Fixes #18630.
Change-Id: Iaca93f9e34a117dae76455cde217a03dd66f08e4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9719
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Diff
src/kits/support/DateTime.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -1024,7 +1024,7 @@
const BLocale* locale = BLocaleRoster::Default()->GetDefaultLocale();
BDateFormat format(locale);
BString out;
if (format.GetDayName(day, out, B_LONG_DATE_FORMAT) != B_OK)
if (format.GetDayName(day, out, B_FULL_DATE_FORMAT) != B_OK)
return BString();
return out;