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

Fix date not being properly displayed due to Carbon3 change #2685

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

ildyria
Copy link
Member

@ildyria ildyria commented Nov 13, 2024

No description provided.

@ildyria ildyria added the Review: easy Easy review expected: probably just need a quick to go through. label Nov 13, 2024
@ildyria ildyria added this to the 6.1.0 milestone Nov 13, 2024
@ildyria ildyria requested a review from d7415 November 13, 2024 17:37
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

Attention: Patch coverage is 16.66667% with 5 lines in your changes missing coverage. Please review.

Project coverage is 84.77%. Comparing base (f6a72dd) to head (7efd23e).
Report is 2 commits behind head on master.

Additional details and impacted files

(int) now()->diffInDays($age) => (int) -now()->diffInHours($age) . ' hours',
(int) now()->diffInWeeks($age) => (int) -now()->diffInDays($age) . ' days',
(int) now()->diffInMonths($age) => (int) -now()->diffInWeeks($age) . ' weeks',
(int) now()->diffInYears($age) => (int) -now()->diffInMonths($age) . ' months',
default => now()->diffInYears($age) . ' years',
Copy link
Contributor

Choose a reason for hiding this comment

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

This one's ok?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well it's what happens when you haven't checked for years. 😅 At that point you are pretty safe with floating numbers.

@ildyria ildyria merged commit 8c12646 into master Nov 14, 2024
49 checks passed
@ildyria ildyria deleted the fix-date-due-to-carbon3 branch November 14, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review: easy Easy review expected: probably just need a quick to go through.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants