ruby / date

A subclass of Object includes Comparable module for handling dates.
Other
71 stars 37 forks source link

Make %v strftime flag use uppercase month #35

Closed jeremyevans closed 3 years ago

jeremyevans commented 3 years ago

%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 commented 3 years ago

%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.