Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix typo in TimeWithZone documentation for consistency. #4762

Closed
wants to merge 1 commit into from

2 participants

@natebird

Fixed a tiny typo in the example code for ActiveSupport::TimeWithZone.

@vijaydev
Collaborator

That isn't a typo. That's the 5 hours time difference between UTC and EST.

@vijaydev vijaydev closed this
@natebird

Oh. Thanks for the clarification. I see that the zone is set to EST up higher in the doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 30, 2012
  1. @natebird
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/time_with_zone.rb
View
2  activesupport/lib/active_support/time_with_zone.rb
@@ -15,7 +15,7 @@ module ActiveSupport
# Time.zone.parse('2007-02-10 15:30:45') # => Sat, 10 Feb 2007 15:30:45 EST -05:00
# Time.zone.at(1170361845) # => Sat, 10 Feb 2007 15:30:45 EST -05:00
# Time.zone.now # => Sun, 18 May 2008 13:07:55 EDT -04:00
- # Time.utc(2007, 2, 10, 20, 30, 45).in_time_zone # => Sat, 10 Feb 2007 15:30:45 EST -05:00
+ # Time.utc(2007, 2, 10, 15, 30, 45).in_time_zone # => Sat, 10 Feb 2007 15:30:45 EST -05:00
#
# See Time and TimeZone for further documentation of these methods.
#
Something went wrong with that request. Please try again.