Skip to content

Commit 1f5aeeb

Browse files
committed
merge revision(s) r45349,r45837,r45838: [Backport ruby#9521] [Backport ruby#9682]
* lib/time.rb: [DOC] Fix timezone in example of Time.parse [Bug ruby#9521] Based on patch by @stomar * lib/time.rb (Time.parse): [DOC] Fix an example in the documentation. Reported by Marcus Stollsteimer. [ruby-core:60778] [Bug ruby#9521] and [ruby-core:61718] [Bug ruby#9682] * lib/time.rb (Time.parse): [DOC] Fix an example in the documentation to use EST. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent be2ae51 commit 1f5aeeb

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

ChangeLog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
Thu Aug 21 01:41:09 2014 Tanaka Akira <[email protected]>
2+
3+
* lib/time.rb (Time.parse): [DOC] Fix an example in the documentation
4+
to use EST.
5+
Reported by Marcus Stollsteimer.
6+
[ruby-core:60778] [Bug #9521] and [ruby-core:61718] [Bug #9682]
7+
8+
Thu Aug 21 01:41:09 2014 Zachary Scott <[email protected]>
9+
10+
* lib/time.rb: [DOC] Fix timezone in example of Time.parse [Bug #9521]
11+
Based on patch by @stomar
12+
113
Tue Aug 19 23:31:48 2014 CHIKANAGA Tomoyuki <[email protected]>
214

315
merge r46831 partially. extracted commits are as follows.

lib/time.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,13 @@ def make_time(year, mon, day, hour, min, sec, sec_fraction, zone, now)
278278
# supplied with those of +now+. For the lower components, the minimum
279279
# values (1 or 0) are assumed if broken or missing. For example:
280280
#
281-
# # Suppose it is "Thu Nov 29 14:33:20 GMT 2001" now and
282-
# # your time zone is GMT:
283-
# now = Time.parse("Thu Nov 29 14:33:20 GMT 2001")
284-
# Time.parse("16:30", now) #=> 2001-11-29 16:30:00 +0900
285-
# Time.parse("7/23", now) #=> 2001-07-23 00:00:00 +0900
286-
# Time.parse("Aug 31", now) #=> 2001-08-31 00:00:00 +0900
287-
# Time.parse("Aug 2000", now) #=> 2000-08-01 00:00:00 +0900
281+
# # Suppose it is "Thu Nov 29 14:33:20 2001" now and
282+
# # your time zone is EST which is GMT-5.
283+
# now = Time.parse("Thu Nov 29 14:33:20 2001")
284+
# Time.parse("16:30", now) #=> 2001-11-29 16:30:00 -0500
285+
# Time.parse("7/23", now) #=> 2001-07-23 00:00:00 -0500
286+
# Time.parse("Aug 31", now) #=> 2001-08-31 00:00:00 -0500
287+
# Time.parse("Aug 2000", now) #=> 2000-08-01 00:00:00 -0500
288288
#
289289
# Since there are numerous conflicts among locally defined time zone
290290
# abbreviations all over the world, this method is not intended to

version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#define RUBY_VERSION "2.1.2"
2-
#define RUBY_RELEASE_DATE "2014-08-20"
3-
#define RUBY_PATCHLEVEL 203
2+
#define RUBY_RELEASE_DATE "2014-08-21"
3+
#define RUBY_PATCHLEVEL 204
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 8
7-
#define RUBY_RELEASE_DAY 20
7+
#define RUBY_RELEASE_DAY 21
88

99
#include "ruby/version.h"
1010

0 commit comments

Comments
 (0)