|
|
|
@ -118,7 +118,11 @@ public abstract class SystemReader {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public int getTimezone(long when) { |
|
|
|
|
return TimeZone.getDefault().getOffset(when) / (60 * 1000); |
|
|
|
|
return getTimeZone().getOffset(when) / (60 * 1000); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public TimeZone getTimeZone() { |
|
|
|
|
return TimeZone.getDefault(); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -187,4 +191,9 @@ public abstract class SystemReader {
|
|
|
|
|
* @return the local time zone |
|
|
|
|
*/ |
|
|
|
|
public abstract int getTimezone(long when); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @return system time zone, possibly mocked for testing |
|
|
|
|
*/ |
|
|
|
|
public abstract TimeZone getTimeZone(); |
|
|
|
|
} |
|
|
|
|