#include "unicode/calendar.h"
#include "unicode/localpointer.h"
#include "unicode/unistr.h"
+#include "unicode/timezone.h"
#include "erarules.h"
#include "erarulestest.h"
+ calId);
}
- LocalPointer<Calendar> cal(Calendar::createInstance("en", status));
+ LocalPointer<Calendar> cal(Calendar::createInstance(*TimeZone::getGMT(), "en", status));
if (U_FAILURE(status)) {
errln("Failed to create a Calendar instance.");
continue;
import com.ibm.icu.util.Calendar;
import com.ibm.icu.util.JapaneseCalendar;
import com.ibm.icu.util.ULocale;
+import com.ibm.icu.util.TimeZone;
/**
* Tests for EraRules class
+ calId);
}
- Calendar cal = Calendar.getInstance(new ULocale("en"));
+ Calendar cal = Calendar.getInstance(TimeZone.GMT_ZONE, new ULocale("en"));
int currentIdx = rules1.getCurrentEraIndex();
int currentYear = cal.get(Calendar.YEAR);
int idx = rules1.getEraIndex(currentYear, cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DATE));