default timezone to fix #107

This commit is contained in:
Enrique Zamudio
2018-04-16 19:50:57 -05:00
parent b92bd46a0e
commit e7306681eb
8 changed files with 24 additions and 1 deletions
@@ -15,11 +15,19 @@ public abstract class DateTimeParseInfo extends FieldParseInfo {
protected static final long FUTURE_TOLERANCE;
protected TimeZone tz;
private static TimeZone defaultTimezone;
static {
FUTURE_TOLERANCE = Long.parseLong(System.getProperty("j8583.future.tolerance", "900000"));
}
public static void setDefaultTimeZone(TimeZone tz) {
defaultTimezone = tz;
}
public static TimeZone getDefaultTimeZone() {
return defaultTimezone;
}
protected DateTimeParseInfo(IsoType type, int length) {
super(type, length);
}