diff options
author | Jeremy Evans <[email protected]> | 2021-07-27 10:23:47 -0700 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-09-28 17:34:26 +0900 |
commit | f9f7f3a75ec5af4a70e3332f8f5aa300c13432e2 (patch) | |
tree | 8d99533cd00f4b9894408b6efade59f2da26dd22 /ext/date/date_core.c | |
parent | af68070068e86872014af9e69bae628c78ac26d6 (diff) |
[ruby/date] Make %v strftime flag use uppercase month
%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]
https://github.com/ruby/date/commit/56c489fd7e
Diffstat (limited to 'ext/date/date_core.c')
-rw-r--r-- | ext/date/date_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index f1017d22e9..4a2225fd2c 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -6900,7 +6900,7 @@ date_strftime_internal(int argc, VALUE *argv, VALUE self, * %c - date and time (%a %b %e %T %Y) * %D - Date (%m/%d/%y) * %F - The ISO 8601 date format (%Y-%m-%d) - * %v - VMS date (%e-%b-%Y) + * %v - VMS date (%e-%^b-%Y) * %x - Same as %D * %X - Same as %T * %r - 12-hour time (%I:%M:%S %p) @@ -8380,7 +8380,7 @@ dt_lite_to_s(VALUE self) * %c - date and time (%a %b %e %T %Y) * %D - Date (%m/%d/%y) * %F - The ISO 8601 date format (%Y-%m-%d) - * %v - VMS date (%e-%b-%Y) + * %v - VMS date (%e-%^b-%Y) * %x - Same as %D * %X - Same as %T * %r - 12-hour time (%I:%M:%S %p) |