Issue #7445 has been updated by felipec (Felipe Contreras). tadf (tadayoshi funaba) wrote: > DateTime also does. > > $ ruby -r date -e 'dt=DateTime.now; ARGV.each{|f| p dt.strftime(f)}' '%s' '%s %z' > "1369651261" > "1369651261 +0900" > > so what? So you accept strftime() works correctly with '%s %z'? Then why do you not accept that strptime() doesn't? ---------------------------------------- Bug #7445: strptime('%s %z') doesn't work https://bugs.ruby-lang.org/issues/7445#change-41598 Author: felipec (Felipe Contreras) Status: Rejected Priority: Low Assignee: tadf (tadayoshi funaba) Category: lib Target version: Next Major ruby -v: ruby 1.9.3p327 Backport: See: ruby -e "require 'date'; p DateTime.strptime('0 +0100', '%s %z').strftime('%s %z')" The timezone is ignored. -- http://bugs.ruby-lang.org/