1.2.0
[v1.2.0] - 2024-06-15
Added
-
Date Handling in
json
Method: Updated thejson
method to correctly handle date conversion from Excel. The function now checks if a cell is formatted as a date and converts it to a readable date string (d/m/Y
). This ensures numeric values that are not dates are not mistakenly converted. -
Date Handling in
collection
Method: Similar updates were made to thecollection
method. This ensures that date cells are correctly identified and converted to readable date strings while preserving other numeric values.
Fixed
- Deprecated Method Usage: Replaced deprecated
getCellByColumnAndRow
method with the recommendedgetCell()
method using cell addresses. This change ensures compatibility with the latest version of PhpSpreadsheet and improves code maintainability.
Installation and Upgrade Notes
To upgrade to this version, ensure your composer.json
file specifies the appropriate version for knackline/excel-to-x
and run composer update
.
Contributors
This release improves the handling of Excel date conversions, ensuring data integrity and compatibility with newer versions of dependencies.