Bug #4458

Time#strftime で %z 指定子での結果への空白を詰めかたが正しくない

Added by tadayoshi funaba about 4 years ago. Updated almost 3 years ago.

[ruby-dev:43287]
Status:Closed
Priority:Normal
Assignee:Akira Tanaka
ruby -v:ruby 1.9.3dev (2011-03-02) [i686-linux] Backport:

Description

=begin
$ ruby -e "p Time.now.strftime('%_10z')"
"+ 900"

=end

patch.diff Magnifier (1.92 KB) Masaki Matsushita, 04/16/2012 10:43 PM

patch2.diff Magnifier (1.93 KB) Masaki Matsushita, 04/17/2012 12:29 AM

patch3.diff Magnifier (1.95 KB) Masaki Matsushita, 04/17/2012 12:41 AM

Associated revisions

Revision 35366
Added by Nobuyoshi Nakada almost 3 years ago

  • strftime.c (rb_strftime_with_timespec): fix padding of time zone offset. [Bug #4458]

Revision 35366
Added by Nobuyoshi Nakada almost 3 years ago

  • strftime.c (rb_strftime_with_timespec): fix padding of time zone offset. [Bug #4458]

History

#1 Updated by Yui NARUSE over 3 years ago

  • Status changed from Open to Assigned
  • Assignee set to Akira Tanaka
  • Target version set to 2.0.0

#2 Updated by Masaki Matsushita almost 3 years ago

patchを作りました。

#3 Updated by Masaki Matsushita almost 3 years ago

空白以外のpaddingを指定した時に正しく動かないので修正しました。

#4 Updated by Masaki Matsushita almost 3 years ago

何度もすみません。
出すべきpatchはこちらでした。

#5 Updated by Nobuyoshi Nakada almost 3 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r35366.
tadayoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • strftime.c (rb_strftime_with_timespec): fix padding of time zone offset. [Bug #4458]

Also available in: Atom PDF