Fix for updating the nano time in case the milliseconds move backwards