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: not enabled 'time.datetime_formatter' #117

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Chris53897
Copy link
Collaborator

@Chris53897 Chris53897 commented Feb 24, 2024

#99

Update: CI is green now.

@Chris53897 Chris53897 closed this Feb 26, 2024
@Chris53897 Chris53897 reopened this Feb 26, 2024
Copy link

codecov bot commented Feb 26, 2024

Codecov Report

Attention: Patch coverage is 86.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 81.47%. Comparing base (f597afe) to head (c55d744).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
Command/ListCommand.php 85.71% 1 Missing ⚠️
Command/MonitorCommand.php 83.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #117      +/-   ##
============================================
- Coverage     82.14%   81.47%   -0.67%     
- Complexity      290      294       +4     
============================================
  Files            30       30              
  Lines          1327     1247      -80     
============================================
- Hits           1090     1016      -74     
+ Misses          237      231       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

return $this->dateTimeFormatter->formatDiff($dateTime);
}

return '';
Copy link

Choose a reason for hiding this comment

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

Why not returning a date string in this case ?

$datetime->format('Y-m-d')

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That would be duplicate the info in this format twice or not?

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.

3 participants