Issue #9521 has been updated by Zachary Scott.

Status changed from Closed to Feedback

You raise a good point, I was only trying to avoid extra work :)

To be honest, these examples are confusing.. I'm not sure what the point of passing tz is, for example:

 `now = Time.parse("Thu Nov 29 14:33:20 GMT 2001")`

Is clearly set to GMT, right?

`Time.parse("16:30", now)     #=> 2001-11-29 16:30:00 +0900`

Yet in this example 16:30 in GMT would be 1:30 the next day in JST..


----------------------------------------
Bug #9521: [Doc] Fix error in Time.parse documentation (in lib/time)
https://bugs.ruby-lang.org/issues/9521#change-45828

* Author: Marcus Stollsteimer
* Status: Feedback
* Priority: Normal
* Assignee: Zachary Scott
* Category: doc
* Target version: 
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux]
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
The docs state that the examples are for GMT as local time zone while in fact they are for JST.
The patch fixes this by using EST (and saying so), like the rest of the examples for lib/time.


---Files--------------------------------
doc_lib_time.patch (1.13 KB)


-- 
http://bugs.ruby-lang.org/