Utils: Move new getSystemTimeZone() from DataHelper to SystemVersion,

which is a better place for it.
This commit is contained in:
zzz
2015-12-06 16:28:14 +00:00
parent 5a7fc3f7f4
commit fdc160cf1d
12 changed files with 76 additions and 31 deletions

View File

@@ -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;
}