in case CAL_GREGORIAN is not defined, set it to 1