Permalink
Browse files

Remove deprecated `DateTime.local_offset`

  • Loading branch information...
1 parent f3f7f31 commit 028f91277defa7742c78788db69db3082b4f70e0 @arunagw arunagw committed Jul 3, 2013
@@ -1,3 +1,7 @@
+* Remove deprecated `DateTime.local_offset` in favor of `DateTime.civil_from_fromat`.
+
+ *Arun Agrawal*
+
* Remove deprecated `Logger` core extensions (`core_ext/logger.rb`).
*Carlos Antonio da Silva*
@@ -3,13 +3,6 @@
class DateTime
class << self
- # *DEPRECATED*: Use +DateTime.civil_from_format+ directly.
- def local_offset
- ActiveSupport::Deprecation.warn 'DateTime.local_offset is deprecated. Use DateTime.civil_from_format directly.'
-
- ::Time.local(2012).utc_offset.to_r / 86400
- end
-
# Returns <tt>Time.zone.now.to_datetime</tt> when <tt>Time.zone</tt> or
# <tt>config.time_zone</tt> are set, otherwise returns
# <tt>Time.now.to_datetime</tt>.

0 comments on commit 028f912

Please sign in to comment.