All US/Canada timezone options silently fall back to UTC — deprecated aliases fail validation in insert-attendance.php

Author: pixeldesign2015Created Aug 1, 2026Updated Aug 1, 2026

The timezone dropdown in page/settings.php uses deprecated PHP timezone aliases for all North American zones (US/Central, US/Eastern, US/Pacific, US/Mountain, US/Hawaii, US/Alaska, US/Arizona, US/East-Indiana, US/Samoa, Canada/Saskatchewan, Canada/Atlantic, Canada/Newfoundland).

insert-attendance.php validates the stored timezone against timezone_identifiers_list() (line ~56), which by default returns only canonical identifiers and does not include these aliases. The check fails, and the code silently falls back to UTC:

php if (empty($awqc_data['timezone']) || !in_array($awqc_data['timezone'], timezone_identifiers_list())) { $awqc_data['timezone'] = 'UTC'; // Fallback to UTC }

Result: any user who selects a US or Canadian timezone gets all attendance records stamped in UTC, with no error shown. Verified on PHP 8.3:

php in_array("US/Central", timezone_identifiers_list()); // false in_array("America/Chicago", timezone_identifiers_list()); // true

Fix: replace the alias keys in the $awqc_timezones array with canonical identifiers, e.g. US/Central → America/Chicago, US/Eastern → America/New_York, US/Pacific → America/Los_Angeles, US/Mountain → America/Denver, US/Arizona → America/Phoenix, US/Hawaii → Pacific/Honolulu, US/Alaska → America/Anchorage, Canada/Atlantic → America/Halifax, Canada/Newfoundland → America/St_Johns, Canada/Saskatchewan → America/Regina. Existing installs with an alias stored will also need to re-save settings after updating.

The labels can stay as-is; only the option values need to change. Canonical identifiers are also DST-aware, so this fixes both the UTC fallback and the fixed-offset labels being wrong half the year.