refactoring
This commit is contained in:
parent
74fad5a16c
commit
d0c5af2eef
|
@ -66,8 +66,7 @@ public class MainFrame {
|
||||||
if (ConnectionStatusLogic.INSTANCE.getValue() == ConnectionStatusValue.CONNECTED) {
|
if (ConnectionStatusLogic.INSTANCE.getValue() == ConnectionStatusValue.CONNECTED) {
|
||||||
long unixGmtTime = System.currentTimeMillis() / 1000L;
|
long unixGmtTime = System.currentTimeMillis() / 1000L;
|
||||||
long withOffset = unixGmtTime + TimeZone.getDefault().getOffset(System.currentTimeMillis()) / 1000;
|
long withOffset = unixGmtTime + TimeZone.getDefault().getOffset(System.currentTimeMillis()) / 1000;
|
||||||
consoleUI.uiContext.getCommandQueue().write("set " +
|
consoleUI.uiContext.getCommandQueue().write(IoUtil.getSetCommand(Fields.CMD_DATE) +
|
||||||
Fields.CMD_DATE +
|
|
||||||
" " + withOffset, CommandQueue.DEFAULT_TIMEOUT,
|
" " + withOffset, CommandQueue.DEFAULT_TIMEOUT,
|
||||||
InvocationConfirmationListener.VOID, false);
|
InvocationConfirmationListener.VOID, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue