Skip to content

Conversation

@Samuell1
Copy link
Member

@Samuell1 Samuell1 commented Jan 4, 2026

  • Bumps minimum PHP version from 8.0.2 to 8.1
  • Replaces deprecated strftime() in FormBuilder::selectMonth() with DateTime::format()
  • Changes default format parameter from strftime '%B' to DateTime 'F' (both output full month name)

- Bumps minimum PHP version from 8.0.2 to 8.1
- Replaces deprecated strftime() in FormBuilder::selectMonth() with DateTime::format()
- Changes default format parameter from strftime '%B' to DateTime 'F' (both output full month name)
@daftspunk daftspunk merged commit 22b6b6f into octobercms:4.x Jan 5, 2026
4 checks passed
@daftspunk
Copy link
Member

Thanks!


foreach (range(1, 12) as $month) {
$months[$month] = strftime($format, mktime(0, 0, 0, $month, 1));
$date = new \DateTime("2024-{$month}-01");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@daftspunk now looking at this there is year 2024 :D can this break something?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine. It needs a year, even if unused...

DEPRECATED  DateTime::setDate(): Passing null to parameter #1 ($year) of type int is deprecated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants