UPDATED the Clock-OSX to compatible with new APIs.