Another fix for time, added cast to short in setMillisecond