Skip to content

Commit

Permalink
Merge pull request #22619 from demeritcowboy/wrong-tz
Browse files Browse the repository at this point in the history
dev/core#2122 - Manage event online registration page doesn't determine timezone correctly
  • Loading branch information
seamuslee001 authored Jan 31, 2022
2 parents 2dc7edd + b753491 commit a649ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Event/Form/ManageEvent/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function buildQuickForm() {
if (!$this->_isTemplate) {
$this->_tz = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $this->_id, 'event_tz');
$tz = CRM_Core_SelectValues::timezone()[$this->_tz];
$this->assign('event_tz', CRM_Core_SelectValues::timezone()[$tz] ?? '<span class="error-message">' . ts('%1 No timezone set', [1 => '<i class="crm-i fa-warning"></i>']) . '</span>');
$this->assign('event_tz', $tz ?? '<span class="error-message">' . ts('%1 No timezone set', [1 => '<i class="crm-i fa-warning"></i>']) . '</span>');
$this->add('datepicker', 'registration_start_date', ts('Registration Start Date'), [], FALSE, ['time' => TRUE]);
$this->add('datepicker', 'registration_end_date', ts('Registration End Date'), [], FALSE, ['time' => TRUE]);
}
Expand Down

0 comments on commit a649ea0

Please sign in to comment.