Skip to content
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

Don't filter out DateTime values #357

Closed
wants to merge 1 commit into from
Closed

Don't filter out DateTime values #357

wants to merge 1 commit into from

Conversation

jschram
Copy link
Contributor

@jschram jschram commented Apr 19, 2024

Currently all values other than string, int or float are filtered out in the transformRows method of Eportable. Since openspout does support DateTime values (see: https://github.com/openspout/openspout/blob/4.x/src/Writer/XLSX/Manager/WorksheetManager.php#L202-L203), we want to keep these values.

Note that openspout/openspout probably needs some attention as well. DateTime values are converted to Excel-compatible Date values (floats), and while it is possible to apply a date formatting to all cells of all rows, that's probably not what you want since this might incorrectly apply the style non-date values that look like Excel-dates. I'll try to implement a fix for them that optionally allows to set a formatting per column.

@jschram
Copy link
Contributor Author

jschram commented May 10, 2024

This PR is also included in #359, so it can be closed

@jschram jschram closed this May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant