Project

General

Profile

Bug #7445

strptime('%s %z') doesn't work

Added by felipec (Felipe Contreras) about 8 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.3p327
Backport:
[ruby-core:50207]

Description

See:

ruby -e "require 'date'; p DateTime.strptime('0 +0100', '%s %z').strftime('%s %z')"

The timezone is ignored.


Files

bug-7445.patch (1.34 KB) bug-7445.patch charliesome (Charlie Somerville), 11/27/2012 10:33 PM
0001-time-fix-strptime.patch (1.44 KB) 0001-time-fix-strptime.patch felipec (Felipe Contreras), 10/06/2013 10:17 AM

Related issues

Related to Ruby master - Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'Closedtadf (tadayoshi funaba)05/02/2014Actions

Also available in: Atom PDF