Project

General

Profile

Bug #4458

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

Added by tadayoshi funaba over 5 years ago. Updated over 4 years ago.

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

Description

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

=end

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

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

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

Associated revisions

Revision 35366
Added by Nobuyoshi Nakada over 4 years ago

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

Revision 35366
Added by Nobuyoshi Nakada over 4 years ago

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

Revision 35366
Added by Nobuyoshi Nakada over 4 years ago

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

History

#1 [ruby-dev:43932] Updated by Yui NARUSE over 5 years ago

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

#2 [ruby-dev:45521] Updated by Masaki Matsushita over 4 years ago

patchを作りました。

#3 [ruby-dev:45523] Updated by Masaki Matsushita over 4 years ago

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

#4 [ruby-dev:45524] Updated by Masaki Matsushita over 4 years ago

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

#5 Updated by Nobuyoshi Nakada over 4 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