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

Make %v strftime flag use uppercase month #35

Merged

Conversation

jeremyevans
Copy link
Contributor

%v is supposed to be the VMS date, and VMS date format uses an
uppercase month.

Ruby 1.8 used an uppercase month for %v, but the behavior was
changed without explanation in r31672.

Time#strftime still uses an uppercase month for %v, so this change
makes Date#strftime consistent with Time#strftime.

Fixes [Bug #13810]

%v is supposed to be the VMS date, and VMS date format uses an
uppercase month.

Ruby 1.8 used an uppercase month for %v, but the behavior was
changed without explanation in r31672.

Time#strftime still uses an uppercase month for %v, so this change
makes Date#strftime consistent with Time#strftime.

Fixes [Bug #13810]
@nobu
Copy link
Member

nobu commented Aug 11, 2021

%v is supposed to be the VMS date, and VMS date format uses an
uppercase month.

Seems correct, as far as I searched.

By the way, maybe off topic, I'm curious why strftime doesn't have a way to downcase.
Both of Time#strftime and GNU date don't have lowercase flag opposite to ^ and # is effective only for %p and %Z for this purpose.

@jeremyevans jeremyevans merged commit 56c489f into ruby:master Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants