X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FEvent.php;h=f20d6702cf81ec2e303c415261e4a4ae73c86659;hb=b11418429c627738ffaa9f2face1d6c68af3bd61;hp=c10266c680d75667f71eaabecce8560b95cb9b16;hpb=9fa8363c73a769710e1006a8793aac3a6004ce38;p=civicrm-core.git diff --git a/api/v3/Event.php b/api/v3/Event.php index c10266c680..f20d6702cf 100644 --- a/api/v3/Event.php +++ b/api/v3/Event.php @@ -59,7 +59,6 @@ function _civicrm_api3_event_create_spec(&$params) { $params['is_active']['api.default'] = 1; $params['financial_type_id']['api.aliases'] = ['contribution_type_id']; $params['is_template']['api.default'] = 0; - $params['event_tz']['api.default'] = CRM_Core_Config::singleton()->userSystem->getTimeZoneString(); } /** @@ -262,15 +261,3 @@ function _civicrm_api3_event_getlist_output($result, $request) { } return $output; } - -/** - * Add missing timezones to all events. - * - * @return array - */ -function civicrm_api3_event_addmissingtimezones($params) { - $defaultTZ = CRM_Core_Config::singleton()->userSystem->getTimeZoneString(); - - CRM_Core_DAO::executeQuery('UPDATE civicrm_event SET event_tz = %1 WHERE event_tz IS NULL OR event_tz = ""', [1 => [$defaultTZ, 'String']]); - return civicrm_api3_create_success($events, $params, 'Event', 'addMissingTimezones'); -}