ICU-7648 Not reporting an error even OS's GMT offset returned by uprv_timezone is not a multiple of 15 minutes. For now, we do not have a mechanism to handle such case (warning) systemtatically, so this change simply call logln to display the warning message.
X-SVN-Rev: 28114
This commit is contained in:
parent
8096281cc9
commit
eb3c9d6b4d
@ -115,16 +115,14 @@ TimeZoneTest::TestGenericAPI()
|
||||
}
|
||||
|
||||
if ((tzoffset % 900) != 0) {
|
||||
#ifdef U_DARWIN
|
||||
/*
|
||||
* Ticket: 6364 (mow - 090522)
|
||||
* On MacOSX 10.5.3 and up, this test fails when TZ is set to certain timezones (e.g. Africa/Dar_es_Salaam)
|
||||
* Their GMT offset is not a multiple of 15 minutes. This is a MacOSX issue and is not a problem with ICU.
|
||||
* Ticket#6364 and #7648
|
||||
* A few time zones are using GMT offests not a multiple of 15 minutes.
|
||||
* Therefore, we should not interpret such case as an error.
|
||||
* We downgrade this from errln to infoln. When we see this message,
|
||||
* we should examine if it is ignorable or not.
|
||||
*/
|
||||
infoln("[WARNING] FAIL: t_timezone may be incorrect. It is not a multiple of 15min. It is %d (Note: This is a known issue on MacOSX)", tzoffset);
|
||||
#else
|
||||
errln("FAIL: t_timezone may be incorrect. It is not a multiple of 15min. It is %d", tzoffset);
|
||||
#endif
|
||||
infoln("WARNING: t_timezone may be incorrect. It is not a multiple of 15min.", tzoffset);
|
||||
}
|
||||
|
||||
TimeZone::adoptDefault(zone);
|
||||
|
Loading…
Reference in New Issue
Block a user