Project

General

Profile

Bug #4458

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

Added by tadf (tadayoshi funaba) over 9 years ago. Updated about 8 years ago.

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

Description

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

=end


Files

patch.diff (1.92 KB) patch.diff Glass_saga (Masaki Matsushita), 04/16/2012 10:43 PM
patch2.diff (1.93 KB) patch2.diff Glass_saga (Masaki Matsushita), 04/17/2012 12:29 AM
patch3.diff (1.95 KB) patch3.diff Glass_saga (Masaki Matsushita), 04/17/2012 12:41 AM

Updated by naruse (Yui NARUSE) almost 9 years ago

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

Updated by Glass_saga (Masaki Matsushita) about 8 years ago

patchを作りました。

Updated by Glass_saga (Masaki Matsushita) about 8 years ago

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

Updated by Glass_saga (Masaki Matsushita) about 8 years ago

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

#5

Updated by nobu (Nobuyoshi Nakada) about 8 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. [ruby-dev:43287][Bug #4458]

Also available in: Atom PDF