lib/tzinfo/definitions/Etc/UTC.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/Etc/UTC.rb in tzinfo-0.3.0
- old
+ new
@@ -1,12 +1,16 @@
-require 'tzinfo/timezone'
+require 'tzinfo/timezone_definition'
+
module TZInfo
-module Definitions #:nodoc:
-module Etc #:nodoc:
-class UTC < Timezone #:nodoc:
-setup
-set_identifier('Etc/UTC')
-add_unbounded_start_period {TimezonePeriod.new(nil,nil,0,0,:UTC)}
-end
-end
-end
+ module Definitions
+ module Etc
+ module UTC
+ include TimezoneDefinition
+
+ timezone 'Etc/UTC' do |tz|
+ tz.offset :o0, 0, 0, :UTC
+
+ end
+ end
+ end
+ end
end