forked from I2P_Developers/i2p.i2p
Utils: Move new getSystemTimeZone() from DataHelper to SystemVersion,
which is a better place for it.
This commit is contained in:
@@ -3,8 +3,7 @@ package i2p.susi.dns;
|
||||
import java.util.Date;
|
||||
import java.text.DateFormat;
|
||||
|
||||
import net.i2p.I2PAppContext;
|
||||
import net.i2p.data.DataHelper;
|
||||
import net.i2p.util.SystemVersion;
|
||||
|
||||
/**
|
||||
* Format a date in local time zone
|
||||
@@ -17,7 +16,7 @@ public abstract class FormatDate
|
||||
static {
|
||||
DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);
|
||||
// the router sets the JVM time zone to UTC but saves the original here so we can get it
|
||||
fmt.setTimeZone(DataHelper.getSystemTimeZone(I2PAppContext.getGlobalContext()));
|
||||
fmt.setTimeZone(SystemVersion.getSystemTimeZone());
|
||||
_dateFormat = fmt;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user