@LayoutlibDelegate /*package*/ static long createDateIntervalFormat( String skeleton, String localeName, String tzName) { TimeZone prevDefaultTz = TimeZone.getDefault(); TimeZone.setDefault(TimeZone.getTimeZone(tzName)); DateIntervalFormat_Delegate newDelegate = new DateIntervalFormat_Delegate(); newDelegate.mFormat = DateIntervalFormat.getInstance(skeleton, new ULocale(localeName)); TimeZone.setDefault(prevDefaultTz); return sManager.addNewDelegate(newDelegate); }
/** @throws Exception */ @After public void columnBindingTearDown() throws Exception { TimeZone.setDefault(this.currentTimeZone); }
@Before public void columnBindingSetUp() throws Exception { TimeZone.setDefault(TimeZone.getTimeZone("GMT+0")); }