Issue #14862 has been updated by Hanmac (Hans Mackowiak).



Quote:

~~~
  %Z - Abbreviated time zone name or similar information.  (OS dependent)

 %Z doesn't identify the timezone. For example, °»CST°… is used at America/Chicago (-06:00), America/Havana (-05:00), Asia/Harbin (+08:00), Australia/Darwin (+09:30) and Australia/Adelaide (+10:30). Also, %Z is highly dependent on the operating system. For example, it may generate a non ASCII string on Japanese Windows. i.e. the result can be different to °»JST°…. So the numeric time zone offset, %z, is recommended.
~~~

thats why it seems it can't parse the BST part, i even tried `strptime`

----------------------------------------
Bug #14862: Time.parse does not handle the time zone
https://bugs.ruby-lang.org/issues/14862#change-72579

* Author: mifrill (Aleksey Strizhak)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
First I would like to thank you for your work, thank you

The point is:
```
Time.parse("Ends from 28 Jun 2018 12:00 BST").zone

"MSK"

DateTime.parse("Ends from 28 Jun 2018 12:00 BST").zone

"+01:00"
```



-- 
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>