mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-05-27 03:05:34 +00:00
Utils: Move new getSystemTimeZone() from DataHelper to SystemVersion,
which is a better place for it.
This commit is contained in:
@@ -16,6 +16,7 @@ import java.util.TreeMap;
|
||||
|
||||
import net.i2p.data.DataHelper;
|
||||
import net.i2p.router.util.EventLog;
|
||||
import net.i2p.util.SystemVersion;
|
||||
|
||||
/**
|
||||
* /events.jsp
|
||||
@@ -188,7 +189,7 @@ public class EventLogHelper extends FormHandler {
|
||||
|
||||
SimpleDateFormat fmt = (SimpleDateFormat) DateFormat.getDateTimeInstance(DateFormat.SHORT, 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(_context));
|
||||
fmt.setTimeZone(SystemVersion.getSystemTimeZone(_context));
|
||||
|
||||
List<Map.Entry<Long, String>> entries = new ArrayList<Map.Entry<Long, String>>(events.entrySet());
|
||||
Collections.reverse(entries);
|
||||
|
||||
Reference in New Issue
Block a user