Project

General

Profile

Actions

Bug #7445

closed

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

Added by felipec (Felipe Contreras) almost 12 years ago. Updated about 11 years ago.

Status:
Rejected
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 Anonymous, 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 1 (0 open1 closed)

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0