refactoring

This commit is contained in:
rusefi 2021-10-10 19:35:22 -04:00
parent 74fad5a16c
commit d0c5af2eef
1 changed files with 1 additions and 2 deletions

View File

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