- $dend = substr($dnow, 0, 8) . get_dim(intval($dnow), intval(substr($dnow, 5)));
- $start_month = Temporal::convert($dstart, 'UTC', 'UTC', 'Y-m-d');
- $end_month = Temporal::convert($dend, 'UTC', 'UTC', 'Y-m-d');
- $str = day_translate(Temporal::convert($dnow, 'UTC', 'UTC', 'F'));
+ $dend = substr($dnow, 0, 8) . Temporal::getDaysInMonth(intval($dnow), intval(substr($dnow, 5)));
+ $start_month = DateTimeFormat::utc($dstart, 'Y-m-d');
+ $end_month = DateTimeFormat::utc($dend, 'Y-m-d');
+ $str = day_translate(DateTimeFormat::utc($dnow, 'F'));