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 strftime month directive #8369

Merged

Conversation

tagliala
Copy link
Contributor

@tagliala tagliala commented Jun 9, 2024

%M is minute of the hour, and Rails 7.2 is guarding against invalid timestamps before executing migrations by default

This commit uses the correct zero-padded month directive %m

Fix #8368

Ref: https://ruby-doc.org/stdlib-3.1.0/libdoc/date/rdoc/DateTime.html#method-i-strftime

`%M` is minute of the hour, and Rails 7.2 is guarding against invalid
timestamps before executing migrations by default

This commit uses the correct zero-padded month directive `%m`

Fix activeadmin#8368

Ref: https://ruby-doc.org/stdlib-3.1.0/libdoc/date/rdoc/DateTime.html#method-i-strftime
Copy link

codecov bot commented Jun 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.10%. Comparing base (feee35c) to head (7e692a3).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8369   +/-   ##
=======================================
  Coverage   99.10%   99.10%           
=======================================
  Files         140      140           
  Lines        4018     4018           
=======================================
  Hits         3982     3982           
  Misses         36       36           

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

@tagliala tagliala mentioned this pull request Jun 9, 2024
3 tasks
Copy link
Member

@javierjulio javierjulio left a comment

Choose a reason for hiding this comment

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

Thanks!

@javierjulio javierjulio merged commit 2a88ad5 into activeadmin:master Jun 9, 2024
21 checks passed
@tagliala tagliala deleted the bugfix/8368-fix-strftime-format branch June 9, 2024 17:29
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.

Timestamp format bug in rails template does not allow to run specs against 7.2.0.beta2
2 participants