From: "tadf (tadayoshi funaba)" Date: 2012-11-28T20:01:08+09:00 Subject: [ruby-core:50253] [ruby-trunk - Bug #7445] strptime('%s %z') doesn't work Issue #7445 has been updated by tadf (tadayoshi funaba). Priority changed from Normal to Low Target version changed from 2.0.0 to Next Major this is intentional behaviour. %s cannot represent localtime with offset. %s implies utc. this is just odd as a date. but, it's an option. we may be able to adopt this feature on next major. i'm not sure at the present time. ---------------------------------------- Bug #7445: strptime('%s %z') doesn't work https://bugs.ruby-lang.org/issues/7445#change-34080 Author: felipec (Felipe Contreras) Status: Assigned Priority: Low Assignee: tadf (tadayoshi funaba) Category: lib Target version: Next Major ruby -v: ruby 1.9.3p327 See: ruby -e "require 'date'; p DateTime.strptime('0 +0100', '%s %z').strftime('%s %z')" The timezone is ignored. -- http://bugs.ruby-lang.org/