From 80d59712aeb881ac974547d0243e435a1989beeb Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Mon, 16 Aug 2010 20:24:51 +0000 Subject: [PATCH] * we need to initialize ICU's default timezone, as the date formatting implementation in BLocale assumes this matches the system's timezone This little bugger should fix #6277, #6370 and #6396. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38158 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/locale/MutableLocaleRoster.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/kits/locale/MutableLocaleRoster.cpp b/src/kits/locale/MutableLocaleRoster.cpp index 339b7f51dc..0b2b706cdf 100644 --- a/src/kits/locale/MutableLocaleRoster.cpp +++ b/src/kits/locale/MutableLocaleRoster.cpp @@ -572,6 +572,11 @@ RosterData::_SetDefaultTimeZone(const BTimeZone& newZone) { fDefaultTimeZone = newZone; + TimeZone* timeZone = TimeZone::createTimeZone(newZone.Code().String()); + if (timeZone == NULL) + return B_ERROR; + TimeZone::adoptDefault(timeZone); + return B_OK; }