We're importing participant data from all our old events. However, I've run into the issue that it only allows me to pick dates back to 1999 when creating the old events. I need to go back as far as 1970. Where do I go to change that setting? I found it for activities and such, but nothing that has affected the listing for events.
As you have discovered Jenni, changing any of the start offset and end offset values in the date preferences settings do not reflect participant and event dates.
So unfortunately, there is no option to make these amendments via the UI.
However, CiviCRM does allow you to manually input dates/years well before 1999/2009 which are accepted, and the records do get saved without an error –
The same method also works when importing participants.
This is a sample CSV I’ve used which had a registered date of 1966 which imported successfully –
When you are creating an Event, the date picker may only offer dates back a certain way (per the purple rectangle in the screenshot), but you can manually enter the dates in the form specified in your Date Settings at civicrm/admin/setting/date?reset=1, eg mm/dd/yyyy (per the green rectangle in the screenshot)
On an older version you can use the prefs for activityDateTime. The code uses the same setting as for activityDateTime under Administer - Customize Data and Screens - Date Preferences. The line of code that creates the widget looks like this:
$this->addDateTime('start_date', ts('Start Date'), FALSE, array('formatType' => 'activityDateTime'));
which tells the form system to use the prefs for activityDateTime.
If you're on a more recent version of CiviCRM the widget has changed and there doesn't seem to be a pref. Temporarily you can edit the file CRM/Event/Form/ManageEvent/EventInfo.php and change the line that says this (around line 177)
$this->add('datepicker', 'start_date', ts('Start'), , !$this->_isTemplate, ['time' => TRUE]);
$this->add('datepicker', 'start_date', ts('Start'), , !$this->_isTemplate, ['time' => TRUE, 'yearRange' => '-50:+50']);