fixed setRTC call