- $tz = date_default_timezone_get();
- if (isset($orig_event['adjust'])) {
- $tz = ($orig_event['adjust'] ? date_default_timezone_get() : 'UTC');
- }
-
- $syear = DateTimeFormat::convert($sdt, $tz, 'UTC', 'Y');
- $smonth = DateTimeFormat::convert($sdt, $tz, 'UTC', 'm');
- $sday = DateTimeFormat::convert($sdt, $tz, 'UTC', 'd');
+ $syear = DateTimeFormat::local($sdt, 'Y');
+ $smonth = DateTimeFormat::local($sdt, 'm');
+ $sday = DateTimeFormat::local($sdt, 'd');