Skip to content

Fix date attributes producing invalid UNIX timestamps on 32-bit PHP#803

Merged
stevebauman merged 1 commit intomasterfrom
bug-801
May 2, 2026
Merged

Fix date attributes producing invalid UNIX timestamps on 32-bit PHP#803
stevebauman merged 1 commit intomasterfrom
bug-801

Conversation

@stevebauman
Copy link
Copy Markdown
Member

Closes #801

This PR implements using round() when converting Windows integer timestamps to UNIX timestamps, ensuring an int is always passed to DateTime::setTimestamp(). Without this, 32-bit PHP produces a float, causing a TypeError (as mentioned in the bug report).

@stevebauman stevebauman merged commit a82c083 into master May 2, 2026
31 checks passed
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.

[Bug] Date attributes produce invalid UNIX timestamps on 32-bit PHP

1 participant