Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.

Conversation

@KiNgMaR
Copy link
Contributor

@KiNgMaR KiNgMaR commented Dec 15, 2015

All dates where the unix timestamp grew higher than PHP_INT_MAX (or maybe also above 2^31 on 64-bit PHP, I didn't test that) were mangled. The new unit test in the PR shows that. To fix the issue, directly pass the number of days instead of the unix timestamp into PHP's Date classes. Please review, any feedback is welcome.

@boxcla
Copy link

boxcla commented Dec 15, 2015

Hi @KiNgMaR, thanks for the pull request. Before we can merge it, we need you to sign our Contributor License Agreement. You can do so electronically here: http://opensource.box.com/cla

Once you have signed, just add a comment to this pull request saying, "CLA signed". Thanks!

@KiNgMaR
Copy link
Contributor Author

KiNgMaR commented Dec 15, 2015

CLA signed.

@boxcla
Copy link

boxcla commented Dec 15, 2015

Verified that @KiNgMaR has just signed the CLA. Thanks, and we look forward to your contribution.

@KiNgMaR
Copy link
Contributor Author

KiNgMaR commented Dec 15, 2015

Resolving the issues found by CI is in progress.

Copy link
Collaborator

Choose a reason for hiding this comment

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

use camelcase for all variables

@adrilo
Copy link
Collaborator

adrilo commented Dec 15, 2015

Good catch @KiNgMaR ! The fix looks good to me :)

@KiNgMaR KiNgMaR force-pushed the Fix-Dates-Beyond-2037 branch 3 times, most recently from 905db3b to 88630a3 Compare December 16, 2015 08:08
@KiNgMaR
Copy link
Contributor Author

KiNgMaR commented Dec 16, 2015

Final proposal pushed :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

keep comment "Fix for the erroneous leap year in Excel"

@adrilo
Copy link
Collaborator

adrilo commented Dec 16, 2015

Minor comments, but overall looks good!

This also fixes years < 1902 on 32-bit PHP systems.
@KiNgMaR KiNgMaR force-pushed the Fix-Dates-Beyond-2037 branch from 88630a3 to 4407cff Compare December 17, 2015 07:52
@KiNgMaR
Copy link
Contributor Author

KiNgMaR commented Dec 17, 2015

Diff updated!

adrilo added a commit that referenced this pull request Dec 17, 2015
XLSX Date Support / Fix for years beyond 2037
@adrilo adrilo merged commit 9a85d84 into box:master Dec 17, 2015
@adrilo
Copy link
Collaborator

adrilo commented Dec 17, 2015

Thanks @KiNgMaR !

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants