fixing wrong name of the getCurrentTime function