ICU-4422 keep default timezone in synch with JDK's

X-SVN-Rev: 18832
This commit is contained in:
Ram Viswanadha 2005-11-28 20:50:56 +00:00
parent d7c162a233
commit f8cf9e1ae1
2 changed files with 5 additions and 3 deletions

View file

@ -816,6 +816,7 @@ public class TestFmwk extends AbstractTestLog {
pw.println(" remainder of the target as above. Target matching is case-insensitive.");
pw.println();
pw.println(" If multiple targets are provided, each is executed in order.");
pw.flush();
}
public static String hex(char ch) {

View file

@ -15,6 +15,7 @@ import java.util.Locale;
import java.util.MissingResourceException;
import com.ibm.icu.impl.ICUResourceBundle;
import com.ibm.icu.impl.TimeZoneAdapter;
import com.ibm.icu.impl.ZoneMeta;
import com.ibm.icu.text.SimpleDateFormat;
@ -709,11 +710,11 @@ abstract public class TimeZone implements Serializable, Cloneable {
defaultZone = tz;
// Keep java.util.TimeZone default in sync so java.util.Date
// can interoperate with com.ibm.icu.util classes.
//java.util.TimeZone jdkZone = null;
java.util.TimeZone jdkZone = null;
if (tz != null) {
//jdkZone = TimeZoneAdapter.wrap(tz);
jdkZone = TimeZoneAdapter.wrap(tz);
}
//java.util.TimeZone.setDefault(jdkZone);
java.util.TimeZone.setDefault(jdkZone);
}
/**