Skip to content

Fix session datetime always being :09 minutes: it's using the month %m in the minutes position#65

Closed
henrahmagix wants to merge 1 commit intobasecamp:masterfrom
henrahmagix:patch-1
Closed

Fix session datetime always being :09 minutes: it's using the month %m in the minutes position#65
henrahmagix wants to merge 1 commit intobasecamp:masterfrom
henrahmagix:patch-1

Conversation

@henrahmagix
Copy link
Copy Markdown

@henrahmagix henrahmagix commented Sep 26, 2025

%m is the month; %M is the minutes.

image image
$ irb
irb(main):001> Time.now
=> 2025-09-26 12:33:28.310967 +0100
irb(main):002> Time.now.strftime("%Y-%m-%d at %I:%m %P")
=> "2025-09-26 at 12:09 pm"
irb(main):003> Time.now.strftime("%Y-%m-%d at %I:%M %P")
=> "2025-09-26 at 12:33 pm"
irb(main):004> RUBY_ENGINE
=> "ruby"
irb(main):005> RUBY_ENGINE_VERSION
=> "3.4.5"

`%m` is the month; `%M` is the minutes.
@flavorjones
Copy link
Copy Markdown
Member

Fixed in c81558d

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.

2 participants