private void syncTime ( ) { try { Long ovhTime = new ApiOvhAuth ( this ) . time_GET ( ) ; long myTime = System . currentTimeMillis ( ) / 1000L ; timeOffset = myTime - ovhTime ; } catch ( Exception e ) { log . error ( "Failed syncronized Ovh Clock" ) ; timeOffset = 0L ; } }
sync local and remote time