Workaround for Time.set(long) not working as advertised