Timestamp creation in Handler can fail #2

Closed
opened 3 months ago by dustinwilson · 1 comments
Owner

Because of how the timestamps are created using microtime allowing for microsecond precision timestamps that occur exactly on the second will be integers. The DateTimeImmutable::format method expects a string representation of a floating point number and will fail.

The solution is to use sprintf and format the output of microtime to always have 4 decimal points.

Because of how the timestamps are created using `microtime` allowing for microsecond precision timestamps that occur exactly on the second will be integers. The `DateTimeImmutable::format` method expects a string representation of a floating point number and will fail. The solution is to use `sprintf` and format the output of `microtime` to always have 4 decimal points.
dustinwilson added the
bug
label 3 months ago
dustinwilson self-assigned this 3 months ago
Poster
Owner

Fixed in 0a710986cd.

Fixed in 0a710986cd.
dustinwilson closed this issue 3 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.