default timezone to fix #107
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user