Skip to content

Fix DateTimeImmutable in CSV Export be formatted correctly #7702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

martinlagler
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
License MIT

What's in this PR?

Check for instance of \DateTimeInterface instead of \DateTime in the CsvHandler.

Why?

So that for example DateTimeImmutable values will also be formatted correctly on csv export.

@martinlagler martinlagler force-pushed the feature/csv-export-format-datetimeinterface branch from 73e3ca4 to 88c8a3f Compare December 12, 2024 16:34
@martinlagler martinlagler changed the base branch from 2.6 to 2.5 December 12, 2024 16:35
@martinlagler martinlagler changed the base branch from 2.5 to 2.6 December 12, 2024 16:36
@alexander-schranz alexander-schranz changed the base branch from 2.6 to 2.5 December 12, 2024 16:36
@alexander-schranz alexander-schranz added the Bug Error or unexpected behavior of already existing functionality label Dec 12, 2024
@alexander-schranz alexander-schranz force-pushed the feature/csv-export-format-datetimeinterface branch from 88c8a3f to d94ce6e Compare January 9, 2025 14:50
@alexander-schranz alexander-schranz force-pushed the feature/csv-export-format-datetimeinterface branch from d94ce6e to 12428cb Compare February 5, 2025 16:34
@alexander-schranz alexander-schranz changed the title Format all instances of DateTimeInterface when creating a csv export Fix DateTimeImmutable in CSV Export Feb 5, 2025
@alexander-schranz alexander-schranz changed the title Fix DateTimeImmutable in CSV Export Fix DateTimeImmutable in CSV Export be formatted correctly Feb 5, 2025
@alexander-schranz alexander-schranz merged commit c66dfa5 into sulu:2.5 Feb 5, 2025
7 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants