[#75225] [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7) — k@...
Issue #12324 has been reported by Kazuki Yamaguchi.
6 messages
2016/04/27
[#78693] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Eric Wong <normalperson@...>
2016/12/17
k@rhe.jp wrote:
[#78701] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Kazuki Yamaguchi <k@...>
2016/12/17
On Sat, Dec 17, 2016 at 01:31:12AM +0000, Eric Wong wrote:
[#78702] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Eric Wong <normalperson@...>
2016/12/17
Kazuki Yamaguchi <k@rhe.jp> wrote:
[ruby-core:74897] [Ruby trunk Bug#12273] Time.parse incorrectly parses Russian months
From:
zverok.offline@...
Date:
2016-04-12 14:46:41 UTC
List:
ruby-core #74897
Issue #12273 has been updated by Victor Shepelev. > Thanks. So what should I use to parse dates in Russian? There's no easy way, unfortunately. For simple formats you can try to just `gsub` Russian monthnames into English and then use normal `Time.parse`. Not a Ruby bug, definitely :) ---------------------------------------- Bug #12273: Time.parse incorrectly parses Russian months https://bugs.ruby-lang.org/issues/12273#change-58023 * Author: Viacheslav Ptsarev * Status: Open * Priority: Normal * Assignee: * ruby -v: 2.3.0 * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- When parsing dates in Russian where day number is 31, `Time.parse` returns `2016-05-01`. No matter what month or year is provided. 31 march 2016: ``` irb(main):003:0> require "time" => true irb(main):004:0> Time.parse "31 марта 2016" => 2016-05-01 00:00:00 +0300 irb(main):005:0> Time.parse "31 march 2016" => 2016-03-31 00:00:00 +0300 irb(main):006:0> Time.parse "31 mars 2016" => 2016-03-31 00:00:00 +0300 ``` 31 december 2013: ``` irb(main):013:0> Time.parse "31 декабря 2013" => 2016-05-01 00:00:00 +0300 irb(main):014:0> Time.parse "31 december 2013" => 2013-12-31 00:00:00 +0400 ``` -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>