mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
fix Dates test for openjdk and stub out java.util.TimeZone
This commit is contained in:
@ -12,6 +12,7 @@ package java.text;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.TimeZone;
|
||||
|
||||
public class SimpleDateFormat {
|
||||
private String pattern;
|
||||
@ -23,6 +24,12 @@ public class SimpleDateFormat {
|
||||
}
|
||||
}
|
||||
|
||||
public void setTimeZone(TimeZone tz) {
|
||||
if(!tz.getDisplayName().equals("GMT")) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
||||
public StringBuffer format(Date date, StringBuffer buffer, FieldPosition position) {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
|
Reference in New Issue
Block a user