Bug #4662

Date#strftime %v gives allcaps instead of normal caps

Added by d-snp (Tinco Andringa) over 9 years ago. Updated over 9 years ago.

Target version:
ruby -v:
ruby 1.9.3dev (2011-05-09 trunk 31496) [x86_64-darwin10.5.0]


Since the big strftime changes of past month strftime gives a capitalised month abbreviation like so:

'%v'=>[' 3-FEB-2001' {:mday=>3,:mon=>2,:year=>2001}]

This is different from before where:

'%v'=>[' 3-Feb-2001',{:mday=>3,:mon=>2,:year=>2001}],

Is there a reason for this change or was it accidental? It breaks with all previous ruby versions and is also inconsistent with for example %b or %c.

Related issues

Related to Ruby master - Misc #13810: Inconsistency between Date and Time.strftime("%v")FeedbackActions

Updated by d-snp (Tinco Andringa) over 9 years ago

I have submitted a pull request for convenience:

Updated by shyouhei (Shyouhei Urabe) over 9 years ago

  • Status changed from Open to Assigned

Tell me when the patch is OK. I can pull it.

Updated by tadf (tadayoshi funaba) over 9 years ago

  • Status changed from Assigned to Closed

%v must be nonstandard.
pd version gives "21-MAY-2011" for today.
some BSD dist's strftime gives "21-May-2011" that is also my choice.

this time i adopted pd version which is same as Time's one.
the one of reasons is "VMS like" if v means VMS.

i'm not sure, but, anyway, revert.


Updated by wanabe (_ wanabe) over 3 years ago

  • Related to Misc #13810: Inconsistency between Date and Time.strftime("%v") added

Also available in: Atom PDF