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

whereMonth 获取月份异常 #507

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

Conversation

hongfs
Copy link
Contributor

@hongfs hongfs commented Oct 31, 2023

当前日期为 31 号,strtotime('last month') 获取的并不是上一个月的时间,而是本月的时间。

https://stackoverflow.com/questions/9058523/php-date-and-strtotime-return-wrong-months-on-31st

@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (7b0b8ea) 12.24% compared to head (aba7264) 12.24%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##                3.0     #507      +/-   ##
============================================
- Coverage     12.24%   12.24%   -0.01%     
- Complexity     2965     2966       +1     
============================================
  Files            64       64              
  Lines          7128     7130       +2     
============================================
  Hits            873      873              
- Misses         6255     6257       +2     
Flag Coverage Δ
unittests 12.24% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/db/concern/TimeFieldQuery.php 0.00% <0.00%> (ø)

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

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.

None yet

2 participants