Skip to content
Browse files

Bundling abbreviated version of TZInfo gem 0.3.8: only the classes an…

…d zone definitions required to support Rails time zone features are included. If a recent version of the full TZInfo gem is installed, this will take precedence over the bundled version

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent c2ce698 commit d4493bc562f4f774bfad075e2ba57be3434046c3 @gbuesing gbuesing committed Mar 30, 2008
Showing with 9,703 additions and 81 deletions.
  1. +2 −0 activesupport/CHANGELOG
  2. +88 −0 activesupport/Rakefile
  3. +1 −0 activesupport/lib/active_support/time_with_zone.rb
  4. +71 −81 activesupport/lib/active_support/values/time_zone.rb
  5. +6 −0 activesupport/lib/active_support/vendor.rb
  6. +33 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo.rb
  7. +47 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/data_timezone.rb
  8. +226 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/data_timezone_info.rb
  9. +55 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Algiers.rb
  10. +219 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Cairo.rb
  11. +38 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Casablanca.rb
  12. +18 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Harare.rb
  13. +25 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Johannesburg.rb
  14. +22 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Monrovia.rb
  15. +23 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Nairobi.rb
  16. +166 −0 ...pport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Argentina/Buenos_Aires.rb
  17. +170 −0 ...vesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Argentina/San_Juan.rb
  18. +23 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Bogota.rb
  19. +23 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Caracas.rb
  20. +283 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Chicago.rb
  21. +136 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Chihuahua.rb
  22. +204 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Denver.rb
  23. +161 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Godthab.rb
  24. +27 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Guatemala.rb
  25. +274 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Halifax.rb
  26. +149 −0 ...support/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Indiana/Indianapolis.rb
  27. +194 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Juneau.rb
  28. +22 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/La_Paz.rb
  29. +35 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Lima.rb
  30. +232 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Los_Angeles.rb
  31. +139 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Mazatlan.rb
  32. +144 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Mexico_City.rb
  33. +131 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Monterrey.rb
  34. +282 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/New_York.rb
  35. +30 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Phoenix.rb
  36. +74 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Regina.rb
  37. +205 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Santiago.rb
  38. +288 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/St_Johns.rb
  39. +196 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Tijuana.rb
  40. +67 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Almaty.rb
  41. +73 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Baghdad.rb
  42. +161 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Baku.rb
  43. +20 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Bangkok.rb
  44. +33 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Chongqing.rb
  45. +27 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Dhaka.rb
  46. +87 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Hong_Kong.rb
  47. +165 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Irkutsk.rb
  48. +30 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Jakarta.rb
  49. +163 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Jerusalem.rb
  50. +20 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Kabul.rb
  51. +163 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Kamchatka.rb
  52. +28 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Karachi.rb
  53. +20 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Katmandu.rb
  54. +25 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Kolkata.rb
  55. +163 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Krasnoyarsk.rb
  56. +31 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Kuala_Lumpur.rb
  57. +18 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Kuwait.rb
  58. +163 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Magadan.rb
  59. +18 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Muscat.rb
  60. +164 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Novosibirsk.rb
  61. +24 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Rangoon.rb
  62. +18 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Riyadh.rb
  63. +34 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Seoul.rb
  64. +35 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Shanghai.rb
  65. +33 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Singapore.rb
  66. +59 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Taipei.rb
  67. +47 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Tashkent.rb
  68. +78 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Tbilisi.rb
  69. +121 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Tehran.rb
  70. +30 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Tokyo.rb
  71. +65 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Ulaanbaatar.rb
  72. +33 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Urumqi.rb
  73. +164 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Vladivostok.rb
  74. +163 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Yakutsk.rb
  75. +165 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Yekaterinburg.rb
  76. +165 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Asia/Yerevan.rb
  77. +270 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Atlantic/Azores.rb
  78. +23 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Atlantic/Cape_Verde.rb
  79. +18 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Atlantic/South_Georgia.rb
  80. +187 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Adelaide.rb
  81. +35 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Brisbane.rb
  82. +29 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Darwin.rb
  83. +193 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Hobart.rb
  84. +185 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Melbourne.rb
  85. +37 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Perth.rb
  86. +185 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Australia/Sydney.rb
  87. +16 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Etc/UTC.rb
  88. +228 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Amsterdam.rb
  89. +185 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Athens.rb
  90. +163 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Belgrade.rb
  91. +188 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Berlin.rb
  92. +13 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Bratislava.rb
  93. +232 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Brussels.rb
  94. +181 −0 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Europe/Bucharest.rb
Sorry, we could not display the entire diff because it was too big.
View
2 activesupport/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Bundling abbreviated version of TZInfo gem 0.3.8: only the classes and zone definitions required to support Rails time zone features are included. If a recent version of the full TZInfo gem is installed, this will take precedence over the bundled version [Geoff Buesing]
+
* TimeWithZone#marshal_load does zone lookup via Time.get_zone, so that tzinfo/Olson identifiers are handled [Geoff Buesing]
* Time.zone= accepts TZInfo::Timezone instances and Olson identifiers; wraps result in TimeZone instance [Geoff Buesing]
View
88 activesupport/Rakefile
@@ -85,3 +85,91 @@ task :release => [ :package ] do
rubyforge.login
rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
end
+
+
+require 'lib/active_support/values/time_zone'
+
+namespace :tzinfo do
+ desc "Update bundled tzinfo gem. Only copies the subset of classes and definitions required to support Rails time zone features."
+ task :update => ['tzinfo:copy_classes', 'tzinfo:copy_definitions'] do
+ Rake::Task['tzinfo:cleanup_tmp'].invoke
+ end
+
+ task :unpack_gem do
+ mkdir_p "tmp"
+ cd "tmp"
+ sh "gem unpack --version #{ENV['VERSION'] || "'> 0'"} tzinfo"
+ cd ".."
+ end
+
+ task :copy_classes => :unpack_gem do
+ mkdir_p "#{destination_path}/tzinfo"
+ cp "#{tmp_path}/lib/tzinfo.rb", destination_path
+ comment_requires_for_excluded_classes!('tzinfo.rb')
+ files = FileList["#{tmp_path}/lib/tzinfo/*.rb"]
+ files.each do |file|
+ filename = File.basename(file)
+ unless excluded_classes.include? filename.sub(/.rb$/, '')
+ cp "#{tmp_path}/lib/tzinfo/#{filename}", "#{destination_path}/tzinfo"
+ comment_requires_for_excluded_classes!("tzinfo/#{filename}")
+ end
+ end
+ end
+
+ task :copy_definitions => :unpack_gem do
+ definitions_path = "#{destination_path}/tzinfo/definitions/"
+ mkdir_p definitions_path
+ TimeZone::MAPPING.values.each do |zone|
+ subdir = nil
+ if /\// === zone
+ subdir = zone.sub(/\w+$/, '')
+ mkdir_p "#{definitions_path}/#{subdir}"
+ end
+ cp "#{tmp_path}/lib/tzinfo/definitions/#{zone}.rb", "#{definitions_path}/#{subdir}"
+ end
+ end
+
+ task :cleanup_tmp do
+ rm_rf "tmp"
+ end
+
+ def comment_requires_for_excluded_classes!(file)
+ lines = open("#{destination_path}/#{file}") {|f| f.readlines}
+ updated = false
+
+ new_lines = []
+ lines.each do |line|
+ if Regexp.new("require 'tzinfo/(#{excluded_classes.join('|')})'") === line
+ updated = true
+ new_lines << "# #{line}"
+ else
+ new_lines << line
+ end
+ end
+
+ if updated
+ open("#{destination_path}/#{file}", "w") {|f| f.write(new_lines.join)}
+ end
+ end
+
+ def version
+ ENV['VERSION'] ||= get_unpacked_version
+ end
+
+ def get_unpacked_version
+ m = (FileList["tmp/tzinfo-*"].to_s.match /\d+\.\d+\.\d+/)
+ m ? m[0] : raise(LoadError, "TZInfo gem must be installed locally. `gem install tzinfo` and try again")
+ end
+
+ def tmp_path
+ "tmp/tzinfo-#{version}"
+ end
+
+ def destination_path
+ "lib/active_support/vendor/tzinfo-#{version}"
+ end
+
+ def excluded_classes
+ %w(country country_index_definition country_info country_timezone tzdataparser)
+ end
+end
View
1 activesupport/lib/active_support/time_with_zone.rb
@@ -1,3 +1,4 @@
+require 'tzinfo'
module ActiveSupport
# A Time-like class that can represent a time in any time zone. Necessary because standard Ruby Time instances are
# limited to UTC and the system's ENV['TZ'] zone
View
152 activesupport/lib/active_support/values/time_zone.rb
@@ -1,4 +1,5 @@
class TimeZone
+ # Keys are Rails TimeZone names, values are TZInfo identifiers
MAPPING = {
"International Date Line West" => "Pacific/Midway",
"Midway Island" => "Pacific/Midway",
@@ -40,7 +41,7 @@ class TimeZone
"London" => "Europe/London",
"Casablanca" => "Africa/Casablanca",
"Monrovia" => "Africa/Monrovia",
- "UTC" => "UTC",
+ "UTC" => "Etc/UTC",
"Belgrade" => "Europe/Belgrade",
"Bratislava" => "Europe/Bratislava",
"Budapest" => "Europe/Budapest",
@@ -93,10 +94,10 @@ class TimeZone
"Islamabad" => "Asia/Karachi",
"Karachi" => "Asia/Karachi",
"Tashkent" => "Asia/Tashkent",
- "Chennai" => "Asia/Calcutta",
- "Kolkata" => "Asia/Calcutta",
- "Mumbai" => "Asia/Calcutta",
- "New Delhi" => "Asia/Calcutta",
+ "Chennai" => "Asia/Kolkata",
+ "Kolkata" => "Asia/Kolkata",
+ "Mumbai" => "Asia/Kolkata",
+ "New Delhi" => "Asia/Kolkata",
"Kathmandu" => "Asia/Katmandu",
"Astana" => "Asia/Dhaka",
"Dhaka" => "Asia/Dhaka",
@@ -179,88 +180,77 @@ def <=>(zone)
def to_s
"(UTC#{formatted_offset}) #{name}"
end
-
- begin # the following methods depend on the tzinfo gem
- require_library_or_gem "tzinfo" unless Object.const_defined?(:TZInfo)
- raise LoadError unless TZInfo.const_defined?(:TimeOrDateTime)
- # Method for creating new ActiveSupport::TimeWithZone instance in time zone of +self+ from given values. Example:
- #
- # Time.zone = "Hawaii" # => "Hawaii"
- # Time.zone.local(2007, 2, 1, 15, 30, 45) # => Thu, 01 Feb 2007 15:30:45 HST -10:00
- def local(*args)
- time = Time.utc_time(*args)
- ActiveSupport::TimeWithZone.new(nil, self, time)
- end
+ # Method for creating new ActiveSupport::TimeWithZone instance in time zone of +self+ from given values. Example:
+ #
+ # Time.zone = "Hawaii" # => "Hawaii"
+ # Time.zone.local(2007, 2, 1, 15, 30, 45) # => Thu, 01 Feb 2007 15:30:45 HST -10:00
+ def local(*args)
+ time = Time.utc_time(*args)
+ ActiveSupport::TimeWithZone.new(nil, self, time)
+ end
- # Method for creating new ActiveSupport::TimeWithZone instance in time zone of +self+ from number of seconds since the Unix epoch. Example:
- #
- # Time.zone = "Hawaii" # => "Hawaii"
- # Time.utc(2000).to_f # => 946684800.0
- # Time.zone.at(946684800.0) # => Fri, 31 Dec 1999 14:00:00 HST -10:00
- def at(secs)
- utc = Time.at(secs).utc rescue DateTime.civil(1970).since(secs)
- utc.in_time_zone(self)
- end
-
- # Method for creating new ActiveSupport::TimeWithZone instance in time zone of +self+ from parsed string. Example:
- #
- # Time.zone = "Hawaii" # => "Hawaii"
- # Time.zone.parse('1999-12-31 14:00:00') # => Fri, 31 Dec 1999 14:00:00 HST -10:00
- #
- # If upper components are missing from the string, they are supplied from TimeZone#now:
- #
- # Time.zone.now # => Fri, 31 Dec 1999 14:00:00 HST -10:00
- # Time.zone.parse('22:30:00') # => Fri, 31 Dec 1999 22:30:00 HST -10:00
- def parse(str, now=now)
- time = Time.parse(str, now) rescue DateTime.parse(str)
- ActiveSupport::TimeWithZone.new(nil, self, time)
- end
-
- # Returns an ActiveSupport::TimeWithZone instance representing the current time
- # in the time zone represented by +self+. Example:
- #
- # Time.zone = 'Hawaii' # => "Hawaii"
- # Time.zone.now # => Wed, 23 Jan 2008 20:24:27 HST -10:00
- def now
- Time.now.utc.in_time_zone(self)
- end
+ # Method for creating new ActiveSupport::TimeWithZone instance in time zone of +self+ from number of seconds since the Unix epoch. Example:
+ #
+ # Time.zone = "Hawaii" # => "Hawaii"
+ # Time.utc(2000).to_f # => 946684800.0
+ # Time.zone.at(946684800.0) # => Fri, 31 Dec 1999 14:00:00 HST -10:00
+ def at(secs)
+ utc = Time.at(secs).utc rescue DateTime.civil(1970).since(secs)
+ utc.in_time_zone(self)
+ end
+
+ # Method for creating new ActiveSupport::TimeWithZone instance in time zone of +self+ from parsed string. Example:
+ #
+ # Time.zone = "Hawaii" # => "Hawaii"
+ # Time.zone.parse('1999-12-31 14:00:00') # => Fri, 31 Dec 1999 14:00:00 HST -10:00
+ #
+ # If upper components are missing from the string, they are supplied from TimeZone#now:
+ #
+ # Time.zone.now # => Fri, 31 Dec 1999 14:00:00 HST -10:00
+ # Time.zone.parse('22:30:00') # => Fri, 31 Dec 1999 22:30:00 HST -10:00
+ def parse(str, now=now)
+ time = Time.parse(str, now) rescue DateTime.parse(str)
+ ActiveSupport::TimeWithZone.new(nil, self, time)
+ end
+
+ # Returns an ActiveSupport::TimeWithZone instance representing the current time
+ # in the time zone represented by +self+. Example:
+ #
+ # Time.zone = 'Hawaii' # => "Hawaii"
+ # Time.zone.now # => Wed, 23 Jan 2008 20:24:27 HST -10:00
+ def now
+ Time.now.utc.in_time_zone(self)
+ end
- # Return the current date in this time zone.
- def today
- tzinfo.now.to_date
- end
+ # Return the current date in this time zone.
+ def today
+ tzinfo.now.to_date
+ end
- # Adjust the given time to the simultaneous time in the time zone represented by +self+. Returns a
- # Time.utc() instance -- if you want an ActiveSupport::TimeWithZone instance, use Time#in_time_zone() instead.
- def utc_to_local(time)
- tzinfo.utc_to_local(time)
- end
-
- # Adjust the given time to the simultaneous time in UTC. Returns a Time.utc() instance.
- def local_to_utc(time, dst=true)
- tzinfo.local_to_utc(time, dst)
- end
+ # Adjust the given time to the simultaneous time in the time zone represented by +self+. Returns a
+ # Time.utc() instance -- if you want an ActiveSupport::TimeWithZone instance, use Time#in_time_zone() instead.
+ def utc_to_local(time)
+ tzinfo.utc_to_local(time)
+ end
+
+ # Adjust the given time to the simultaneous time in UTC. Returns a Time.utc() instance.
+ def local_to_utc(time, dst=true)
+ tzinfo.local_to_utc(time, dst)
+ end
- # Available so that TimeZone instances respond like TZInfo::Timezone instances
- def period_for_utc(time)
- tzinfo.period_for_utc(time)
- end
+ # Available so that TimeZone instances respond like TZInfo::Timezone instances
+ def period_for_utc(time)
+ tzinfo.period_for_utc(time)
+ end
- # Available so that TimeZone instances respond like TZInfo::Timezone instances
- def period_for_local(time, dst=true)
- tzinfo.period_for_local(time, dst)
- end
-
- def tzinfo
- @tzinfo ||= TZInfo::Timezone.get(MAPPING[name])
- end
-
- rescue LoadError # Tzinfo gem is not available
- # re-raise LoadError only when a tzinfo-dependent method is called:
- %w(local at parse now today utc_to_local local_to_utc period_for_utc period_for_local tzinfo).each do |method|
- define_method(method) {|*args| raise LoadError, "TZInfo version >= 0.2 is required for TimeZone##{method}(). `gem install tzinfo` and try again."}
- end
+ # Available so that TimeZone instances respond like TZInfo::Timezone instances
+ def period_for_local(time, dst=true)
+ tzinfo.period_for_local(time, dst)
+ end
+
+ def tzinfo
+ @tzinfo ||= TZInfo::Timezone.get(MAPPING[name])
end
@@zones = nil
View
6 activesupport/lib/active_support/vendor.rb
@@ -17,4 +17,10 @@
gem 'memcache-client', '~> 1.5.0'
rescue Gem::LoadError
$:.unshift "#{File.dirname(__FILE__)}/vendor/memcache-client-1.5.0"
+end
+
+begin
+ gem 'tzinfo', '~> 0.3.8'
+rescue Gem::LoadError
+ $:.unshift "#{File.dirname(__FILE__)}/vendor/tzinfo-0.3.8"
end
View
33 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo.rb
@@ -0,0 +1,33 @@
+#--
+# Copyright (c) 2005-2006 Philip Ross
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+#++
+
+# Add the directory containing this file to the start of the load path if it
+# isn't there already.
+$:.unshift(File.dirname(__FILE__)) unless
+ $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
+
+require 'tzinfo/timezone'
+# require 'tzinfo/country'
+# require 'tzinfo/tzdataparser'
+require 'tzinfo/timezone_proxy'
+require 'tzinfo/data_timezone'
+require 'tzinfo/linked_timezone'
View
47 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/data_timezone.rb
@@ -0,0 +1,47 @@
+#--
+# Copyright (c) 2006 Philip Ross
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+#++
+
+require 'tzinfo/info_timezone'
+
+module TZInfo
+
+ # A Timezone based on a DataTimezoneInfo.
+ class DataTimezone < InfoTimezone #:nodoc:
+
+ # Returns the TimezonePeriod for the given UTC time. utc can either be
+ # a DateTime, Time or integer timestamp (Time.to_i). Any timezone
+ # information in utc is ignored (it is treated as a UTC time).
+ #
+ # If no TimezonePeriod could be found, PeriodNotFound is raised.
+ def period_for_utc(utc)
+ info.period_for_utc(utc)
+ end
+
+ # Returns the set of TimezonePeriod instances that are valid for the given
+ # local time as an array. If you just want a single period, use
+ # period_for_local instead and specify how abiguities should be resolved.
+ # Raises PeriodNotFound if no periods are found for the given time.
+ def periods_for_local(local)
+ info.periods_for_local(local)
+ end
+ end
+end
View
226 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/data_timezone_info.rb
@@ -0,0 +1,226 @@
+#--
+# Copyright (c) 2006 Philip Ross
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+#++
+
+require 'tzinfo/time_or_datetime'
+require 'tzinfo/timezone_info'
+require 'tzinfo/timezone_offset_info'
+require 'tzinfo/timezone_period'
+require 'tzinfo/timezone_transition_info'
+
+module TZInfo
+ # Thrown if no offsets have been defined when calling period_for_utc or
+ # periods_for_local. Indicates an error in the timezone data.
+ class NoOffsetsDefined < StandardError
+ end
+
+ # Represents a (non-linked) timezone defined in a data module.
+ class DataTimezoneInfo < TimezoneInfo #:nodoc:
+
+ # Constructs a new TimezoneInfo with its identifier.
+ def initialize(identifier)
+ super(identifier)
+ @offsets = {}
+ @transitions = []
+ end
+
+ # Defines a offset. The id uniquely identifies this offset within the
+ # timezone. utc_offset and std_offset define the offset in seconds of
+ # standard time from UTC and daylight savings from standard time
+ # respectively. abbreviation describes the timezone offset (e.g. GMT, BST,
+ # EST or EDT).
+ #
+ # The first offset to be defined is treated as the offset that applies
+ # until the first transition. This will usually be in Local Mean Time (LMT).
+ #
+ # ArgumentError will be raised if the id is already defined.
+ def offset(id, utc_offset, std_offset, abbreviation)
+ raise ArgumentError, 'Offset already defined' if @offsets.has_key?(id)
+
+ offset = TimezoneOffsetInfo.new(utc_offset, std_offset, abbreviation)
+ @offsets[id] = offset
+ @previous_offset = offset unless @previous_offset
+ end
+
+ # Defines a transition. Transitions must be defined in chronological order.
+ # ArgumentError will be raised if a transition is added out of order.
+ # offset_id refers to an id defined with offset. ArgumentError will be
+ # raised if the offset_id cannot be found. numerator_or_time and
+ # denomiator specify the time the transition occurs as. See
+ # TimezoneTransitionInfo for more detail about specifying times.
+ def transition(year, month, offset_id, numerator_or_time, denominator = nil)
+ offset = @offsets[offset_id]
+ raise ArgumentError, 'Offset not found' unless offset
+
+ if @transitions_index
+ if year < @last_year || (year == @last_year && month < @last_month)
+ raise ArgumentError, 'Transitions must be increasing date order'
+ end
+
+ # Record the position of the first transition with this index.
+ index = transition_index(year, month)
+ @transitions_index[index] ||= @transitions.length
+
+ # Fill in any gaps
+ (index - 1).downto(0) do |i|
+ break if @transitions_index[i]
+ @transitions_index[i] = @transitions.length
+ end
+ else
+ @transitions_index = [@transitions.length]
+ @start_year = year
+ @start_month = month
+ end
+
+ @transitions << TimezoneTransitionInfo.new(offset, @previous_offset,
+ numerator_or_time, denominator)
+ @last_year = year
+ @last_month = month
+ @previous_offset = offset
+ end
+
+ # Returns the TimezonePeriod for the given UTC time.
+ # Raises NoOffsetsDefined if no offsets have been defined.
+ def period_for_utc(utc)
+ unless @transitions.empty?
+ utc = TimeOrDateTime.wrap(utc)
+ index = transition_index(utc.year, utc.mon)
+
+ start_transition = nil
+ start = transition_before_end(index)
+ if start
+ start.downto(0) do |i|
+ if @transitions[i].at <= utc
+ start_transition = @transitions[i]
+ break
+ end
+ end
+ end
+
+ end_transition = nil
+ start = transition_after_start(index)
+ if start
+ start.upto(@transitions.length - 1) do |i|
+ if @transitions[i].at > utc
+ end_transition = @transitions[i]
+ break
+ end
+ end
+ end
+
+ if start_transition || end_transition
+ TimezonePeriod.new(start_transition, end_transition)
+ else
+ # Won't happen since there are transitions. Must always find one
+ # transition that is either >= or < the specified time.
+ raise 'No transitions found in search'
+ end
+ else
+ raise NoOffsetsDefined, 'No offsets have been defined' unless @previous_offset
+ TimezonePeriod.new(nil, nil, @previous_offset)
+ end
+ end
+
+ # Returns the set of TimezonePeriods for the given local time as an array.
+ # Results returned are ordered by increasing UTC start date.
+ # Returns an empty array if no periods are found for the given time.
+ # Raises NoOffsetsDefined if no offsets have been defined.
+ def periods_for_local(local)
+ unless @transitions.empty?
+ local = TimeOrDateTime.wrap(local)
+ index = transition_index(local.year, local.mon)
+
+ result = []
+
+ start_index = transition_after_start(index - 1)
+ if start_index && @transitions[start_index].local_end > local
+ if start_index > 0
+ if @transitions[start_index - 1].local_start <= local
+ result << TimezonePeriod.new(@transitions[start_index - 1], @transitions[start_index])
+ end
+ else
+ result << TimezonePeriod.new(nil, @transitions[start_index])
+ end
+ end
+
+ end_index = transition_before_end(index + 1)
+
+ if end_index
+ start_index = end_index unless start_index
+
+ start_index.upto(transition_before_end(index + 1)) do |i|
+ if @transitions[i].local_start <= local
+ if i + 1 < @transitions.length
+ if @transitions[i + 1].local_end > local
+ result << TimezonePeriod.new(@transitions[i], @transitions[i + 1])
+ end
+ else
+ result << TimezonePeriod.new(@transitions[i], nil)
+ end
+ end
+ end
+ end
+
+ result
+ else
+ raise NoOffsetsDefined, 'No offsets have been defined' unless @previous_offset
+ [TimezonePeriod.new(nil, nil, @previous_offset)]
+ end
+ end
+
+ private
+ # Returns the index into the @transitions_index array for a given year
+ # and month.
+ def transition_index(year, month)
+ index = (year - @start_year) * 2
+ index += 1 if month > 6
+ index -= 1 if @start_month > 6
+ index
+ end
+
+ # Returns the index into @transitions of the first transition that occurs
+ # on or after the start of the given index into @transitions_index.
+ # Returns nil if there are no such transitions.
+ def transition_after_start(index)
+ if index >= @transitions_index.length
+ nil
+ else
+ index = 0 if index < 0
+ @transitions_index[index]
+ end
+ end
+
+ # Returns the index into @transitions of the first transition that occurs
+ # before the end of the given index into @transitions_index.
+ # Returns nil if there are no such transitions.
+ def transition_before_end(index)
+ index = index + 1
+
+ if index <= 0
+ nil
+ elsif index >= @transitions_index.length
+ @transitions.length - 1
+ else
+ @transitions_index[index] - 1
+ end
+ end
+ end
+end
View
55 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Algiers.rb
@@ -0,0 +1,55 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module Africa
+ module Algiers
+ include TimezoneDefinition
+
+ timezone 'Africa/Algiers' do |tz|
+ tz.offset :o0, 732, 0, :LMT
+ tz.offset :o1, 561, 0, :PMT
+ tz.offset :o2, 0, 0, :WET
+ tz.offset :o3, 0, 3600, :WEST
+ tz.offset :o4, 3600, 0, :CET
+ tz.offset :o5, 3600, 3600, :CEST
+
+ tz.transition 1891, 3, :o1, 2170625843, 900
+ tz.transition 1911, 3, :o2, 69670267013, 28800
+ tz.transition 1916, 6, :o3, 58104707, 24
+ tz.transition 1916, 10, :o2, 58107323, 24
+ tz.transition 1917, 3, :o3, 58111499, 24
+ tz.transition 1917, 10, :o2, 58116227, 24
+ tz.transition 1918, 3, :o3, 58119899, 24
+ tz.transition 1918, 10, :o2, 58124963, 24
+ tz.transition 1919, 3, :o3, 58128467, 24
+ tz.transition 1919, 10, :o2, 58133699, 24
+ tz.transition 1920, 2, :o3, 58136867, 24
+ tz.transition 1920, 10, :o2, 58142915, 24
+ tz.transition 1921, 3, :o3, 58146323, 24
+ tz.transition 1921, 6, :o2, 58148699, 24
+ tz.transition 1939, 9, :o3, 58308443, 24
+ tz.transition 1939, 11, :o2, 4859173, 2
+ tz.transition 1940, 2, :o4, 29156215, 12
+ tz.transition 1944, 4, :o5, 58348405, 24
+ tz.transition 1944, 10, :o4, 4862743, 2
+ tz.transition 1945, 4, :o5, 58357141, 24
+ tz.transition 1945, 9, :o4, 58361147, 24
+ tz.transition 1946, 10, :o2, 58370411, 24
+ tz.transition 1956, 1, :o4, 4871003, 2
+ tz.transition 1963, 4, :o2, 58515203, 24
+ tz.transition 1971, 4, :o3, 41468400
+ tz.transition 1971, 9, :o2, 54774000
+ tz.transition 1977, 5, :o3, 231724800
+ tz.transition 1977, 10, :o4, 246236400
+ tz.transition 1978, 3, :o5, 259545600
+ tz.transition 1978, 9, :o4, 275274000
+ tz.transition 1979, 10, :o2, 309740400
+ tz.transition 1980, 4, :o3, 325468800
+ tz.transition 1980, 10, :o2, 341802000
+ tz.transition 1981, 5, :o4, 357523200
+ end
+ end
+ end
+ end
+end
View
219 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Cairo.rb
@@ -0,0 +1,219 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module Africa
+ module Cairo
+ include TimezoneDefinition
+
+ timezone 'Africa/Cairo' do |tz|
+ tz.offset :o0, 7500, 0, :LMT
+ tz.offset :o1, 7200, 0, :EET
+ tz.offset :o2, 7200, 3600, :EEST
+
+ tz.transition 1900, 9, :o1, 695604503, 288
+ tz.transition 1940, 7, :o2, 29157905, 12
+ tz.transition 1940, 9, :o1, 19439227, 8
+ tz.transition 1941, 4, :o2, 29161193, 12
+ tz.transition 1941, 9, :o1, 19442027, 8
+ tz.transition 1942, 3, :o2, 29165405, 12
+ tz.transition 1942, 10, :o1, 19445275, 8
+ tz.transition 1943, 3, :o2, 29169785, 12
+ tz.transition 1943, 10, :o1, 19448235, 8
+ tz.transition 1944, 3, :o2, 29174177, 12
+ tz.transition 1944, 10, :o1, 19451163, 8
+ tz.transition 1945, 4, :o2, 29178737, 12
+ tz.transition 1945, 10, :o1, 19454083, 8
+ tz.transition 1957, 5, :o2, 29231621, 12
+ tz.transition 1957, 9, :o1, 19488899, 8
+ tz.transition 1958, 4, :o2, 29235893, 12
+ tz.transition 1958, 9, :o1, 19491819, 8
+ tz.transition 1959, 4, :o2, 58480547, 24
+ tz.transition 1959, 9, :o1, 4873683, 2
+ tz.transition 1960, 4, :o2, 58489331, 24
+ tz.transition 1960, 9, :o1, 4874415, 2
+ tz.transition 1961, 4, :o2, 58498091, 24
+ tz.transition 1961, 9, :o1, 4875145, 2
+ tz.transition 1962, 4, :o2, 58506851, 24
+ tz.transition 1962, 9, :o1, 4875875, 2
+ tz.transition 1963, 4, :o2, 58515611, 24
+ tz.transition 1963, 9, :o1, 4876605, 2
+ tz.transition 1964, 4, :o2, 58524395, 24
+ tz.transition 1964, 9, :o1, 4877337, 2
+ tz.transition 1965, 4, :o2, 58533155, 24
+ tz.transition 1965, 9, :o1, 4878067, 2
+ tz.transition 1966, 4, :o2, 58541915, 24
+ tz.transition 1966, 10, :o1, 4878799, 2
+ tz.transition 1967, 4, :o2, 58550675, 24
+ tz.transition 1967, 10, :o1, 4879529, 2
+ tz.transition 1968, 4, :o2, 58559459, 24
+ tz.transition 1968, 10, :o1, 4880261, 2
+ tz.transition 1969, 4, :o2, 58568219, 24
+ tz.transition 1969, 10, :o1, 4880991, 2
+ tz.transition 1970, 4, :o2, 10364400
+ tz.transition 1970, 10, :o1, 23587200
+ tz.transition 1971, 4, :o2, 41900400
+ tz.transition 1971, 10, :o1, 55123200
+ tz.transition 1972, 4, :o2, 73522800
+ tz.transition 1972, 10, :o1, 86745600
+ tz.transition 1973, 4, :o2, 105058800
+ tz.transition 1973, 10, :o1, 118281600
+ tz.transition 1974, 4, :o2, 136594800
+ tz.transition 1974, 10, :o1, 149817600
+ tz.transition 1975, 4, :o2, 168130800
+ tz.transition 1975, 10, :o1, 181353600
+ tz.transition 1976, 4, :o2, 199753200
+ tz.transition 1976, 10, :o1, 212976000
+ tz.transition 1977, 4, :o2, 231289200
+ tz.transition 1977, 10, :o1, 244512000
+ tz.transition 1978, 4, :o2, 262825200
+ tz.transition 1978, 10, :o1, 276048000
+ tz.transition 1979, 4, :o2, 294361200
+ tz.transition 1979, 10, :o1, 307584000
+ tz.transition 1980, 4, :o2, 325983600
+ tz.transition 1980, 10, :o1, 339206400
+ tz.transition 1981, 4, :o2, 357519600
+ tz.transition 1981, 10, :o1, 370742400
+ tz.transition 1982, 7, :o2, 396399600
+ tz.transition 1982, 10, :o1, 402278400
+ tz.transition 1983, 7, :o2, 426812400
+ tz.transition 1983, 10, :o1, 433814400
+ tz.transition 1984, 4, :o2, 452214000
+ tz.transition 1984, 10, :o1, 465436800
+ tz.transition 1985, 4, :o2, 483750000
+ tz.transition 1985, 10, :o1, 496972800
+ tz.transition 1986, 4, :o2, 515286000
+ tz.transition 1986, 10, :o1, 528508800
+ tz.transition 1987, 4, :o2, 546822000
+ tz.transition 1987, 10, :o1, 560044800
+ tz.transition 1988, 4, :o2, 578444400
+ tz.transition 1988, 10, :o1, 591667200
+ tz.transition 1989, 5, :o2, 610412400
+ tz.transition 1989, 10, :o1, 623203200
+ tz.transition 1990, 4, :o2, 641516400
+ tz.transition 1990, 10, :o1, 654739200
+ tz.transition 1991, 4, :o2, 673052400
+ tz.transition 1991, 10, :o1, 686275200
+ tz.transition 1992, 4, :o2, 704674800
+ tz.transition 1992, 10, :o1, 717897600
+ tz.transition 1993, 4, :o2, 736210800
+ tz.transition 1993, 10, :o1, 749433600
+ tz.transition 1994, 4, :o2, 767746800
+ tz.transition 1994, 10, :o1, 780969600
+ tz.transition 1995, 4, :o2, 799020000
+ tz.transition 1995, 9, :o1, 812322000
+ tz.transition 1996, 4, :o2, 830469600
+ tz.transition 1996, 9, :o1, 843771600
+ tz.transition 1997, 4, :o2, 861919200
+ tz.transition 1997, 9, :o1, 875221200
+ tz.transition 1998, 4, :o2, 893368800
+ tz.transition 1998, 9, :o1, 906670800
+ tz.transition 1999, 4, :o2, 925423200
+ tz.transition 1999, 9, :o1, 938725200
+ tz.transition 2000, 4, :o2, 956872800
+ tz.transition 2000, 9, :o1, 970174800
+ tz.transition 2001, 4, :o2, 988322400
+ tz.transition 2001, 9, :o1, 1001624400
+ tz.transition 2002, 4, :o2, 1019772000
+ tz.transition 2002, 9, :o1, 1033074000
+ tz.transition 2003, 4, :o2, 1051221600
+ tz.transition 2003, 9, :o1, 1064523600
+ tz.transition 2004, 4, :o2, 1083276000
+ tz.transition 2004, 9, :o1, 1096578000
+ tz.transition 2005, 4, :o2, 1114725600
+ tz.transition 2005, 9, :o1, 1128027600
+ tz.transition 2006, 4, :o2, 1146175200
+ tz.transition 2006, 9, :o1, 1158872400
+ tz.transition 2007, 4, :o2, 1177624800
+ tz.transition 2007, 9, :o1, 1189112400
+ tz.transition 2008, 4, :o2, 1209074400
+ tz.transition 2008, 8, :o1, 1219957200
+ tz.transition 2009, 4, :o2, 1240524000
+ tz.transition 2009, 8, :o1, 1251406800
+ tz.transition 2010, 4, :o2, 1272578400
+ tz.transition 2010, 8, :o1, 1282856400
+ tz.transition 2011, 4, :o2, 1304028000
+ tz.transition 2011, 8, :o1, 1314306000
+ tz.transition 2012, 4, :o2, 1335477600
+ tz.transition 2012, 8, :o1, 1346360400
+ tz.transition 2013, 4, :o2, 1366927200
+ tz.transition 2013, 8, :o1, 1377810000
+ tz.transition 2014, 4, :o2, 1398376800
+ tz.transition 2014, 8, :o1, 1409259600
+ tz.transition 2015, 4, :o2, 1429826400
+ tz.transition 2015, 8, :o1, 1440709200
+ tz.transition 2016, 4, :o2, 1461880800
+ tz.transition 2016, 8, :o1, 1472158800
+ tz.transition 2017, 4, :o2, 1493330400
+ tz.transition 2017, 8, :o1, 1504213200
+ tz.transition 2018, 4, :o2, 1524780000
+ tz.transition 2018, 8, :o1, 1535662800
+ tz.transition 2019, 4, :o2, 1556229600
+ tz.transition 2019, 8, :o1, 1567112400
+ tz.transition 2020, 4, :o2, 1587679200
+ tz.transition 2020, 8, :o1, 1598562000
+ tz.transition 2021, 4, :o2, 1619733600
+ tz.transition 2021, 8, :o1, 1630011600
+ tz.transition 2022, 4, :o2, 1651183200
+ tz.transition 2022, 8, :o1, 1661461200
+ tz.transition 2023, 4, :o2, 1682632800
+ tz.transition 2023, 8, :o1, 1693515600
+ tz.transition 2024, 4, :o2, 1714082400
+ tz.transition 2024, 8, :o1, 1724965200
+ tz.transition 2025, 4, :o2, 1745532000
+ tz.transition 2025, 8, :o1, 1756414800
+ tz.transition 2026, 4, :o2, 1776981600
+ tz.transition 2026, 8, :o1, 1787864400
+ tz.transition 2027, 4, :o2, 1809036000
+ tz.transition 2027, 8, :o1, 1819314000
+ tz.transition 2028, 4, :o2, 1840485600
+ tz.transition 2028, 8, :o1, 1851368400
+ tz.transition 2029, 4, :o2, 1871935200
+ tz.transition 2029, 8, :o1, 1882818000
+ tz.transition 2030, 4, :o2, 1903384800
+ tz.transition 2030, 8, :o1, 1914267600
+ tz.transition 2031, 4, :o2, 1934834400
+ tz.transition 2031, 8, :o1, 1945717200
+ tz.transition 2032, 4, :o2, 1966888800
+ tz.transition 2032, 8, :o1, 1977166800
+ tz.transition 2033, 4, :o2, 1998338400
+ tz.transition 2033, 8, :o1, 2008616400
+ tz.transition 2034, 4, :o2, 2029788000
+ tz.transition 2034, 8, :o1, 2040670800
+ tz.transition 2035, 4, :o2, 2061237600
+ tz.transition 2035, 8, :o1, 2072120400
+ tz.transition 2036, 4, :o2, 2092687200
+ tz.transition 2036, 8, :o1, 2103570000
+ tz.transition 2037, 4, :o2, 2124136800
+ tz.transition 2037, 8, :o1, 2135019600
+ tz.transition 2038, 4, :o2, 29586521, 12
+ tz.transition 2038, 8, :o1, 19725299, 8
+ tz.transition 2039, 4, :o2, 29590889, 12
+ tz.transition 2039, 8, :o1, 19728211, 8
+ tz.transition 2040, 4, :o2, 29595257, 12
+ tz.transition 2040, 8, :o1, 19731179, 8
+ tz.transition 2041, 4, :o2, 29599625, 12
+ tz.transition 2041, 8, :o1, 19734091, 8
+ tz.transition 2042, 4, :o2, 29603993, 12
+ tz.transition 2042, 8, :o1, 19737003, 8
+ tz.transition 2043, 4, :o2, 29608361, 12
+ tz.transition 2043, 8, :o1, 19739915, 8
+ tz.transition 2044, 4, :o2, 29612813, 12
+ tz.transition 2044, 8, :o1, 19742827, 8
+ tz.transition 2045, 4, :o2, 29617181, 12
+ tz.transition 2045, 8, :o1, 19745795, 8
+ tz.transition 2046, 4, :o2, 29621549, 12
+ tz.transition 2046, 8, :o1, 19748707, 8
+ tz.transition 2047, 4, :o2, 29625917, 12
+ tz.transition 2047, 8, :o1, 19751619, 8
+ tz.transition 2048, 4, :o2, 29630285, 12
+ tz.transition 2048, 8, :o1, 19754531, 8
+ tz.transition 2049, 4, :o2, 29634737, 12
+ tz.transition 2049, 8, :o1, 19757443, 8
+ tz.transition 2050, 4, :o2, 29639105, 12
+ tz.transition 2050, 8, :o1, 19760355, 8
+ end
+ end
+ end
+ end
+end
View
38 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Casablanca.rb
@@ -0,0 +1,38 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module Africa
+ module Casablanca
+ include TimezoneDefinition
+
+ timezone 'Africa/Casablanca' do |tz|
+ tz.offset :o0, -1820, 0, :LMT
+ tz.offset :o1, 0, 0, :WET
+ tz.offset :o2, 0, 3600, :WEST
+ tz.offset :o3, 3600, 0, :CET
+
+ tz.transition 1913, 10, :o1, 10454687371, 4320
+ tz.transition 1939, 9, :o2, 4859037, 2
+ tz.transition 1939, 11, :o1, 58310075, 24
+ tz.transition 1940, 2, :o2, 4859369, 2
+ tz.transition 1945, 11, :o1, 58362659, 24
+ tz.transition 1950, 6, :o2, 4866887, 2
+ tz.transition 1950, 10, :o1, 58406003, 24
+ tz.transition 1967, 6, :o2, 2439645, 1
+ tz.transition 1967, 9, :o1, 58554347, 24
+ tz.transition 1974, 6, :o2, 141264000
+ tz.transition 1974, 8, :o1, 147222000
+ tz.transition 1976, 5, :o2, 199756800
+ tz.transition 1976, 7, :o1, 207702000
+ tz.transition 1977, 5, :o2, 231292800
+ tz.transition 1977, 9, :o1, 244249200
+ tz.transition 1978, 6, :o2, 265507200
+ tz.transition 1978, 8, :o1, 271033200
+ tz.transition 1984, 3, :o3, 448243200
+ tz.transition 1985, 12, :o1, 504918000
+ end
+ end
+ end
+ end
+end
View
18 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Harare.rb
@@ -0,0 +1,18 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module Africa
+ module Harare
+ include TimezoneDefinition
+
+ timezone 'Africa/Harare' do |tz|
+ tz.offset :o0, 7452, 0, :LMT
+ tz.offset :o1, 7200, 0, :CAT
+
+ tz.transition 1903, 2, :o1, 1932939531, 800
+ end
+ end
+ end
+ end
+end
View
25 ...esupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Johannesburg.rb
@@ -0,0 +1,25 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module Africa
+ module Johannesburg
+ include TimezoneDefinition
+
+ timezone 'Africa/Johannesburg' do |tz|
+ tz.offset :o0, 6720, 0, :LMT
+ tz.offset :o1, 5400, 0, :SAST
+ tz.offset :o2, 7200, 0, :SAST
+ tz.offset :o3, 7200, 3600, :SAST
+
+ tz.transition 1892, 2, :o1, 108546139, 45
+ tz.transition 1903, 2, :o2, 38658791, 16
+ tz.transition 1942, 9, :o3, 4861245, 2
+ tz.transition 1943, 3, :o2, 58339307, 24
+ tz.transition 1943, 9, :o3, 4861973, 2
+ tz.transition 1944, 3, :o2, 58348043, 24
+ end
+ end
+ end
+ end
+end
View
22 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Monrovia.rb
@@ -0,0 +1,22 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module Africa
+ module Monrovia
+ include TimezoneDefinition
+
+ timezone 'Africa/Monrovia' do |tz|
+ tz.offset :o0, -2588, 0, :LMT
+ tz.offset :o1, -2588, 0, :MMT
+ tz.offset :o2, -2670, 0, :LRT
+ tz.offset :o3, 0, 0, :GMT
+
+ tz.transition 1882, 1, :o1, 52022445047, 21600
+ tz.transition 1919, 3, :o2, 52315600247, 21600
+ tz.transition 1972, 5, :o3, 73529070
+ end
+ end
+ end
+ end
+end
View
23 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/Africa/Nairobi.rb
@@ -0,0 +1,23 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module Africa
+ module Nairobi
+ include TimezoneDefinition
+
+ timezone 'Africa/Nairobi' do |tz|
+ tz.offset :o0, 8836, 0, :LMT
+ tz.offset :o1, 10800, 0, :EAT
+ tz.offset :o2, 9000, 0, :BEAT
+ tz.offset :o3, 9885, 0, :BEAUT
+
+ tz.transition 1928, 6, :o1, 52389253391, 21600
+ tz.transition 1929, 12, :o2, 19407819, 8
+ tz.transition 1939, 12, :o3, 116622211, 48
+ tz.transition 1959, 12, :o1, 14036742061, 5760
+ end
+ end
+ end
+ end
+end
View
166 ...b/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Argentina/Buenos_Aires.rb
@@ -0,0 +1,166 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module America
+ module Argentina
+ module Buenos_Aires
+ include TimezoneDefinition
+
+ timezone 'America/Argentina/Buenos_Aires' do |tz|
+ tz.offset :o0, -14028, 0, :LMT
+ tz.offset :o1, -15408, 0, :CMT
+ tz.offset :o2, -14400, 0, :ART
+ tz.offset :o3, -14400, 3600, :ARST
+ tz.offset :o4, -10800, 0, :ART
+ tz.offset :o5, -10800, 3600, :ARST
+
+ tz.transition 1894, 10, :o1, 17374555169, 7200
+ tz.transition 1920, 5, :o2, 1453467407, 600
+ tz.transition 1930, 12, :o3, 7278935, 3
+ tz.transition 1931, 4, :o2, 19411461, 8
+ tz.transition 1931, 10, :o3, 7279889, 3
+ tz.transition 1932, 3, :o2, 19414141, 8
+ tz.transition 1932, 11, :o3, 7281038, 3
+ tz.transition 1933, 3, :o2, 19417061, 8
+ tz.transition 1933, 11, :o3, 7282133, 3
+ tz.transition 1934, 3, :o2, 19419981, 8
+ tz.transition 1934, 11, :o3, 7283228, 3
+ tz.transition 1935, 3, :o2, 19422901, 8
+ tz.transition 1935, 11, :o3, 7284323, 3
+ tz.transition 1936, 3, :o2, 19425829, 8
+ tz.transition 1936, 11, :o3, 7285421, 3
+ tz.transition 1937, 3, :o2, 19428749, 8
+ tz.transition 1937, 11, :o3, 7286516, 3
+ tz.transition 1938, 3, :o2, 19431669, 8
+ tz.transition 1938, 11, :o3, 7287611, 3
+ tz.transition 1939, 3, :o2, 19434589, 8
+ tz.transition 1939, 11, :o3, 7288706, 3
+ tz.transition 1940, 3, :o2, 19437517, 8
+ tz.transition 1940, 7, :o3, 7289435, 3
+ tz.transition 1941, 6, :o2, 19441285, 8
+ tz.transition 1941, 10, :o3, 7290848, 3
+ tz.transition 1943, 8, :o2, 19447501, 8
+ tz.transition 1943, 10, :o3, 7293038, 3
+ tz.transition 1946, 3, :o2, 19455045, 8
+ tz.transition 1946, 10, :o3, 7296284, 3
+ tz.transition 1963, 10, :o2, 19506429, 8
+ tz.transition 1963, 12, :o3, 7315136, 3
+ tz.transition 1964, 3, :o2, 19507645, 8
+ tz.transition 1964, 10, :o3, 7316051, 3
+ tz.transition 1965, 3, :o2, 19510565, 8
+ tz.transition 1965, 10, :o3, 7317146, 3
+ tz.transition 1966, 3, :o2, 19513485, 8
+ tz.transition 1966, 10, :o3, 7318241, 3
+ tz.transition 1967, 4, :o2, 19516661, 8
+ tz.transition 1967, 10, :o3, 7319294, 3
+ tz.transition 1968, 4, :o2, 19519629, 8
+ tz.transition 1968, 10, :o3, 7320407, 3
+ tz.transition 1969, 4, :o2, 19522541, 8
+ tz.transition 1969, 10, :o4, 7321499, 3
+ tz.transition 1974, 1, :o5, 128142000
+ tz.transition 1974, 5, :o4, 136605600
+ tz.transition 1988, 12, :o5, 596948400
+ tz.transition 1989, 3, :o4, 605066400
+ tz.transition 1989, 10, :o5, 624423600
+ tz.transition 1990, 3, :o4, 636516000
+ tz.transition 1990, 10, :o5, 656478000
+ tz.transition 1991, 3, :o4, 667965600
+ tz.transition 1991, 10, :o5, 687927600
+ tz.transition 1992, 3, :o4, 699415200
+ tz.transition 1992, 10, :o5, 719377200
+ tz.transition 1993, 3, :o4, 731469600
+ tz.transition 1999, 10, :o3, 938919600
+ tz.transition 2000, 3, :o4, 952052400
+ tz.transition 2007, 12, :o5, 1198983600
+ tz.transition 2008, 3, :o4, 1205632800
+ tz.transition 2008, 10, :o5, 1223175600
+ tz.transition 2009, 3, :o4, 1237082400
+ tz.transition 2009, 10, :o5, 1254625200
+ tz.transition 2010, 3, :o4, 1269136800
+ tz.transition 2010, 10, :o5, 1286074800
+ tz.transition 2011, 3, :o4, 1300586400
+ tz.transition 2011, 10, :o5, 1317524400
+ tz.transition 2012, 3, :o4, 1332036000
+ tz.transition 2012, 10, :o5, 1349578800
+ tz.transition 2013, 3, :o4, 1363485600
+ tz.transition 2013, 10, :o5, 1381028400
+ tz.transition 2014, 3, :o4, 1394935200
+ tz.transition 2014, 10, :o5, 1412478000
+ tz.transition 2015, 3, :o4, 1426384800
+ tz.transition 2015, 10, :o5, 1443927600
+ tz.transition 2016, 3, :o4, 1458439200
+ tz.transition 2016, 10, :o5, 1475377200
+ tz.transition 2017, 3, :o4, 1489888800
+ tz.transition 2017, 10, :o5, 1506826800
+ tz.transition 2018, 3, :o4, 1521338400
+ tz.transition 2018, 10, :o5, 1538881200
+ tz.transition 2019, 3, :o4, 1552788000
+ tz.transition 2019, 10, :o5, 1570330800
+ tz.transition 2020, 3, :o4, 1584237600
+ tz.transition 2020, 10, :o5, 1601780400
+ tz.transition 2021, 3, :o4, 1616292000
+ tz.transition 2021, 10, :o5, 1633230000
+ tz.transition 2022, 3, :o4, 1647741600
+ tz.transition 2022, 10, :o5, 1664679600
+ tz.transition 2023, 3, :o4, 1679191200
+ tz.transition 2023, 10, :o5, 1696129200
+ tz.transition 2024, 3, :o4, 1710640800
+ tz.transition 2024, 10, :o5, 1728183600
+ tz.transition 2025, 3, :o4, 1742090400
+ tz.transition 2025, 10, :o5, 1759633200
+ tz.transition 2026, 3, :o4, 1773540000
+ tz.transition 2026, 10, :o5, 1791082800
+ tz.transition 2027, 3, :o4, 1805594400
+ tz.transition 2027, 10, :o5, 1822532400
+ tz.transition 2028, 3, :o4, 1837044000
+ tz.transition 2028, 10, :o5, 1853982000
+ tz.transition 2029, 3, :o4, 1868493600
+ tz.transition 2029, 10, :o5, 1886036400
+ tz.transition 2030, 3, :o4, 1899943200
+ tz.transition 2030, 10, :o5, 1917486000
+ tz.transition 2031, 3, :o4, 1931392800
+ tz.transition 2031, 10, :o5, 1948935600
+ tz.transition 2032, 3, :o4, 1963447200
+ tz.transition 2032, 10, :o5, 1980385200
+ tz.transition 2033, 3, :o4, 1994896800
+ tz.transition 2033, 10, :o5, 2011834800
+ tz.transition 2034, 3, :o4, 2026346400
+ tz.transition 2034, 10, :o5, 2043284400
+ tz.transition 2035, 3, :o4, 2057796000
+ tz.transition 2035, 10, :o5, 2075338800
+ tz.transition 2036, 3, :o4, 2089245600
+ tz.transition 2036, 10, :o5, 2106788400
+ tz.transition 2037, 3, :o4, 2120695200
+ tz.transition 2037, 10, :o5, 2138238000
+ tz.transition 2038, 3, :o4, 29586043, 12
+ tz.transition 2038, 10, :o5, 19725597, 8
+ tz.transition 2039, 3, :o4, 29590411, 12
+ tz.transition 2039, 10, :o5, 19728509, 8
+ tz.transition 2040, 3, :o4, 29594779, 12
+ tz.transition 2040, 10, :o5, 19731477, 8
+ tz.transition 2041, 3, :o4, 29599147, 12
+ tz.transition 2041, 10, :o5, 19734389, 8
+ tz.transition 2042, 3, :o4, 29603515, 12
+ tz.transition 2042, 10, :o5, 19737301, 8
+ tz.transition 2043, 3, :o4, 29607883, 12
+ tz.transition 2043, 10, :o5, 19740213, 8
+ tz.transition 2044, 3, :o4, 29612335, 12
+ tz.transition 2044, 10, :o5, 19743125, 8
+ tz.transition 2045, 3, :o4, 29616703, 12
+ tz.transition 2045, 10, :o5, 19746037, 8
+ tz.transition 2046, 3, :o4, 29621071, 12
+ tz.transition 2046, 10, :o5, 19749005, 8
+ tz.transition 2047, 3, :o4, 29625439, 12
+ tz.transition 2047, 10, :o5, 19751917, 8
+ tz.transition 2048, 3, :o4, 29629807, 12
+ tz.transition 2048, 10, :o5, 19754829, 8
+ tz.transition 2049, 3, :o4, 29634259, 12
+ tz.transition 2049, 10, :o5, 19757741, 8
+ tz.transition 2050, 3, :o4, 29638627, 12
+ end
+ end
+ end
+ end
+ end
+end
View
170 ...t/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Argentina/San_Juan.rb
@@ -0,0 +1,170 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module America
+ module Argentina
+ module San_Juan
+ include TimezoneDefinition
+
+ timezone 'America/Argentina/San_Juan' do |tz|
+ tz.offset :o0, -16444, 0, :LMT
+ tz.offset :o1, -15408, 0, :CMT
+ tz.offset :o2, -14400, 0, :ART
+ tz.offset :o3, -14400, 3600, :ARST
+ tz.offset :o4, -10800, 0, :ART
+ tz.offset :o5, -10800, 3600, :ARST
+ tz.offset :o6, -14400, 0, :WART
+
+ tz.transition 1894, 10, :o1, 52123666111, 21600
+ tz.transition 1920, 5, :o2, 1453467407, 600
+ tz.transition 1930, 12, :o3, 7278935, 3
+ tz.transition 1931, 4, :o2, 19411461, 8
+ tz.transition 1931, 10, :o3, 7279889, 3
+ tz.transition 1932, 3, :o2, 19414141, 8
+ tz.transition 1932, 11, :o3, 7281038, 3
+ tz.transition 1933, 3, :o2, 19417061, 8
+ tz.transition 1933, 11, :o3, 7282133, 3
+ tz.transition 1934, 3, :o2, 19419981, 8
+ tz.transition 1934, 11, :o3, 7283228, 3
+ tz.transition 1935, 3, :o2, 19422901, 8
+ tz.transition 1935, 11, :o3, 7284323, 3
+ tz.transition 1936, 3, :o2, 19425829, 8
+ tz.transition 1936, 11, :o3, 7285421, 3
+ tz.transition 1937, 3, :o2, 19428749, 8
+ tz.transition 1937, 11, :o3, 7286516, 3
+ tz.transition 1938, 3, :o2, 19431669, 8
+ tz.transition 1938, 11, :o3, 7287611, 3
+ tz.transition 1939, 3, :o2, 19434589, 8
+ tz.transition 1939, 11, :o3, 7288706, 3
+ tz.transition 1940, 3, :o2, 19437517, 8
+ tz.transition 1940, 7, :o3, 7289435, 3
+ tz.transition 1941, 6, :o2, 19441285, 8
+ tz.transition 1941, 10, :o3, 7290848, 3
+ tz.transition 1943, 8, :o2, 19447501, 8
+ tz.transition 1943, 10, :o3, 7293038, 3
+ tz.transition 1946, 3, :o2, 19455045, 8
+ tz.transition 1946, 10, :o3, 7296284, 3
+ tz.transition 1963, 10, :o2, 19506429, 8
+ tz.transition 1963, 12, :o3, 7315136, 3
+ tz.transition 1964, 3, :o2, 19507645, 8
+ tz.transition 1964, 10, :o3, 7316051, 3
+ tz.transition 1965, 3, :o2, 19510565, 8
+ tz.transition 1965, 10, :o3, 7317146, 3
+ tz.transition 1966, 3, :o2, 19513485, 8
+ tz.transition 1966, 10, :o3, 7318241, 3
+ tz.transition 1967, 4, :o2, 19516661, 8
+ tz.transition 1967, 10, :o3, 7319294, 3
+ tz.transition 1968, 4, :o2, 19519629, 8
+ tz.transition 1968, 10, :o3, 7320407, 3
+ tz.transition 1969, 4, :o2, 19522541, 8
+ tz.transition 1969, 10, :o4, 7321499, 3
+ tz.transition 1974, 1, :o5, 128142000
+ tz.transition 1974, 5, :o4, 136605600
+ tz.transition 1988, 12, :o5, 596948400
+ tz.transition 1989, 3, :o4, 605066400
+ tz.transition 1989, 10, :o5, 624423600
+ tz.transition 1990, 3, :o4, 636516000
+ tz.transition 1990, 10, :o5, 656478000
+ tz.transition 1991, 3, :o6, 667792800
+ tz.transition 1991, 5, :o4, 673588800
+ tz.transition 1991, 10, :o5, 687927600
+ tz.transition 1992, 3, :o4, 699415200
+ tz.transition 1992, 10, :o5, 719377200
+ tz.transition 1993, 3, :o4, 731469600
+ tz.transition 1999, 10, :o3, 938919600
+ tz.transition 2000, 3, :o4, 952052400
+ tz.transition 2004, 5, :o6, 1085972400
+ tz.transition 2004, 7, :o4, 1090728000
+ tz.transition 2007, 12, :o5, 1198983600
+ tz.transition 2008, 3, :o4, 1205632800
+ tz.transition 2008, 10, :o5, 1223175600
+ tz.transition 2009, 3, :o4, 1237082400
+ tz.transition 2009, 10, :o5, 1254625200
+ tz.transition 2010, 3, :o4, 1269136800
+ tz.transition 2010, 10, :o5, 1286074800
+ tz.transition 2011, 3, :o4, 1300586400
+ tz.transition 2011, 10, :o5, 1317524400
+ tz.transition 2012, 3, :o4, 1332036000
+ tz.transition 2012, 10, :o5, 1349578800
+ tz.transition 2013, 3, :o4, 1363485600
+ tz.transition 2013, 10, :o5, 1381028400
+ tz.transition 2014, 3, :o4, 1394935200
+ tz.transition 2014, 10, :o5, 1412478000
+ tz.transition 2015, 3, :o4, 1426384800
+ tz.transition 2015, 10, :o5, 1443927600
+ tz.transition 2016, 3, :o4, 1458439200
+ tz.transition 2016, 10, :o5, 1475377200
+ tz.transition 2017, 3, :o4, 1489888800
+ tz.transition 2017, 10, :o5, 1506826800
+ tz.transition 2018, 3, :o4, 1521338400
+ tz.transition 2018, 10, :o5, 1538881200
+ tz.transition 2019, 3, :o4, 1552788000
+ tz.transition 2019, 10, :o5, 1570330800
+ tz.transition 2020, 3, :o4, 1584237600
+ tz.transition 2020, 10, :o5, 1601780400
+ tz.transition 2021, 3, :o4, 1616292000
+ tz.transition 2021, 10, :o5, 1633230000
+ tz.transition 2022, 3, :o4, 1647741600
+ tz.transition 2022, 10, :o5, 1664679600
+ tz.transition 2023, 3, :o4, 1679191200
+ tz.transition 2023, 10, :o5, 1696129200
+ tz.transition 2024, 3, :o4, 1710640800
+ tz.transition 2024, 10, :o5, 1728183600
+ tz.transition 2025, 3, :o4, 1742090400
+ tz.transition 2025, 10, :o5, 1759633200
+ tz.transition 2026, 3, :o4, 1773540000
+ tz.transition 2026, 10, :o5, 1791082800
+ tz.transition 2027, 3, :o4, 1805594400
+ tz.transition 2027, 10, :o5, 1822532400
+ tz.transition 2028, 3, :o4, 1837044000
+ tz.transition 2028, 10, :o5, 1853982000
+ tz.transition 2029, 3, :o4, 1868493600
+ tz.transition 2029, 10, :o5, 1886036400
+ tz.transition 2030, 3, :o4, 1899943200
+ tz.transition 2030, 10, :o5, 1917486000
+ tz.transition 2031, 3, :o4, 1931392800
+ tz.transition 2031, 10, :o5, 1948935600
+ tz.transition 2032, 3, :o4, 1963447200
+ tz.transition 2032, 10, :o5, 1980385200
+ tz.transition 2033, 3, :o4, 1994896800
+ tz.transition 2033, 10, :o5, 2011834800
+ tz.transition 2034, 3, :o4, 2026346400
+ tz.transition 2034, 10, :o5, 2043284400
+ tz.transition 2035, 3, :o4, 2057796000
+ tz.transition 2035, 10, :o5, 2075338800
+ tz.transition 2036, 3, :o4, 2089245600
+ tz.transition 2036, 10, :o5, 2106788400
+ tz.transition 2037, 3, :o4, 2120695200
+ tz.transition 2037, 10, :o5, 2138238000
+ tz.transition 2038, 3, :o4, 29586043, 12
+ tz.transition 2038, 10, :o5, 19725597, 8
+ tz.transition 2039, 3, :o4, 29590411, 12
+ tz.transition 2039, 10, :o5, 19728509, 8
+ tz.transition 2040, 3, :o4, 29594779, 12
+ tz.transition 2040, 10, :o5, 19731477, 8
+ tz.transition 2041, 3, :o4, 29599147, 12
+ tz.transition 2041, 10, :o5, 19734389, 8
+ tz.transition 2042, 3, :o4, 29603515, 12
+ tz.transition 2042, 10, :o5, 19737301, 8
+ tz.transition 2043, 3, :o4, 29607883, 12
+ tz.transition 2043, 10, :o5, 19740213, 8
+ tz.transition 2044, 3, :o4, 29612335, 12
+ tz.transition 2044, 10, :o5, 19743125, 8
+ tz.transition 2045, 3, :o4, 29616703, 12
+ tz.transition 2045, 10, :o5, 19746037, 8
+ tz.transition 2046, 3, :o4, 29621071, 12
+ tz.transition 2046, 10, :o5, 19749005, 8
+ tz.transition 2047, 3, :o4, 29625439, 12
+ tz.transition 2047, 10, :o5, 19751917, 8
+ tz.transition 2048, 3, :o4, 29629807, 12
+ tz.transition 2048, 10, :o5, 19754829, 8
+ tz.transition 2049, 3, :o4, 29634259, 12
+ tz.transition 2049, 10, :o5, 19757741, 8
+ tz.transition 2050, 3, :o4, 29638627, 12
+ end
+ end
+ end
+ end
+ end
+end
View
23 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Bogota.rb
@@ -0,0 +1,23 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module America
+ module Bogota
+ include TimezoneDefinition
+
+ timezone 'America/Bogota' do |tz|
+ tz.offset :o0, -17780, 0, :LMT
+ tz.offset :o1, -17780, 0, :BMT
+ tz.offset :o2, -18000, 0, :COT
+ tz.offset :o3, -18000, 3600, :COST
+
+ tz.transition 1884, 3, :o1, 10407954409, 4320
+ tz.transition 1914, 11, :o2, 10456385929, 4320
+ tz.transition 1992, 5, :o3, 704869200
+ tz.transition 1993, 4, :o2, 733896000
+ end
+ end
+ end
+ end
+end
View
23 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Caracas.rb
@@ -0,0 +1,23 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module America
+ module Caracas
+ include TimezoneDefinition
+
+ timezone 'America/Caracas' do |tz|
+ tz.offset :o0, -16064, 0, :LMT
+ tz.offset :o1, -16060, 0, :CMT
+ tz.offset :o2, -16200, 0, :VET
+ tz.offset :o3, -14400, 0, :VET
+
+ tz.transition 1890, 1, :o1, 1627673863, 675
+ tz.transition 1912, 2, :o2, 10452001043, 4320
+ tz.transition 1965, 1, :o3, 39020187, 16
+ tz.transition 2007, 12, :o2, 1197183600
+ end
+ end
+ end
+ end
+end
View
283 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Chicago.rb
@@ -0,0 +1,283 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module America
+ module Chicago
+ include TimezoneDefinition
+
+ timezone 'America/Chicago' do |tz|
+ tz.offset :o0, -21036, 0, :LMT
+ tz.offset :o1, -21600, 0, :CST
+ tz.offset :o2, -21600, 3600, :CDT
+ tz.offset :o3, -18000, 0, :EST
+ tz.offset :o4, -21600, 3600, :CWT
+ tz.offset :o5, -21600, 3600, :CPT
+
+ tz.transition 1883, 11, :o1, 9636533, 4
+ tz.transition 1918, 3, :o2, 14530103, 6
+ tz.transition 1918, 10, :o1, 58125451, 24
+ tz.transition 1919, 3, :o2, 14532287, 6
+ tz.transition 1919, 10, :o1, 58134187, 24
+ tz.transition 1920, 6, :o2, 14534933, 6
+ tz.transition 1920, 10, :o1, 58143091, 24
+ tz.transition 1921, 3, :o2, 14536655, 6
+ tz.transition 1921, 10, :o1, 58151827, 24
+ tz.transition 1922, 4, :o2, 14539049, 6
+ tz.transition 1922, 9, :o1, 58159723, 24
+ tz.transition 1923, 4, :o2, 14541233, 6
+ tz.transition 1923, 9, :o1, 58168627, 24
+ tz.transition 1924, 4, :o2, 14543417, 6
+ tz.transition 1924, 9, :o1, 58177363, 24
+ tz.transition 1925, 4, :o2, 14545601, 6
+ tz.transition 1925, 9, :o1, 58186099, 24
+ tz.transition 1926, 4, :o2, 14547785, 6
+ tz.transition 1926, 9, :o1, 58194835, 24
+ tz.transition 1927, 4, :o2, 14549969, 6
+ tz.transition 1927, 9, :o1, 58203571, 24
+ tz.transition 1928, 4, :o2, 14552195, 6
+ tz.transition 1928, 9, :o1, 58212475, 24
+ tz.transition 1929, 4, :o2, 14554379, 6
+ tz.transition 1929, 9, :o1, 58221211, 24
+ tz.transition 1930, 4, :o2, 14556563, 6
+ tz.transition 1930, 9, :o1, 58229947, 24
+ tz.transition 1931, 4, :o2, 14558747, 6
+ tz.transition 1931, 9, :o1, 58238683, 24
+ tz.transition 1932, 4, :o2, 14560931, 6
+ tz.transition 1932, 9, :o1, 58247419, 24
+ tz.transition 1933, 4, :o2, 14563157, 6
+ tz.transition 1933, 9, :o1, 58256155, 24
+ tz.transition 1934, 4, :o2, 14565341, 6
+ tz.transition 1934, 9, :o1, 58265059, 24
+ tz.transition 1935, 4, :o2, 14567525, 6
+ tz.transition 1935, 9, :o1, 58273795, 24
+ tz.transition 1936, 3, :o3, 14569373, 6
+ tz.transition 1936, 11, :o1, 58283707, 24
+ tz.transition 1937, 4, :o2, 14571893, 6
+ tz.transition 1937, 9, :o1, 58291267, 24
+ tz.transition 1938, 4, :o2, 14574077, 6
+ tz.transition 1938, 9, :o1, 58300003, 24
+ tz.transition 1939, 4, :o2, 14576303, 6
+ tz.transition 1939, 9, :o1, 58308739, 24
+ tz.transition 1940, 4, :o2, 14578487, 6
+ tz.transition 1940, 9, :o1, 58317643, 24
+ tz.transition 1941, 4, :o2, 14580671, 6
+ tz.transition 1941, 9, :o1, 58326379, 24
+ tz.transition 1942, 2, :o4, 14582399, 6
+ tz.transition 1945, 8, :o5, 58360379, 24
+ tz.transition 1945, 9, :o1, 58361491, 24
+ tz.transition 1946, 4, :o2, 14591633, 6
+ tz.transition 1946, 9, :o1, 58370227, 24
+ tz.transition 1947, 4, :o2, 14593817, 6
+ tz.transition 1947, 9, :o1, 58378963, 24
+ tz.transition 1948, 4, :o2, 14596001, 6
+ tz.transition 1948, 9, :o1, 58387699, 24
+ tz.transition 1949, 4, :o2, 14598185, 6
+ tz.transition 1949, 9, :o1, 58396435, 24
+ tz.transition 1950, 4, :o2, 14600411, 6
+ tz.transition 1950, 9, :o1, 58405171, 24
+ tz.transition 1951, 4, :o2, 14602595, 6
+ tz.transition 1951, 9, :o1, 58414075, 24
+ tz.transition 1952, 4, :o2, 14604779, 6
+ tz.transition 1952, 9, :o1, 58422811, 24
+ tz.transition 1953, 4, :o2, 14606963, 6
+ tz.transition 1953, 9, :o1, 58431547, 24
+ tz.transition 1954, 4, :o2, 14609147, 6
+ tz.transition 1954, 9, :o1, 58440283, 24
+ tz.transition 1955, 4, :o2, 14611331, 6
+ tz.transition 1955, 10, :o1, 58449859, 24
+ tz.transition 1956, 4, :o2, 14613557, 6
+ tz.transition 1956, 10, :o1, 58458595, 24
+ tz.transition 1957, 4, :o2, 14615741, 6
+ tz.transition 1957, 10, :o1, 58467331, 24
+ tz.transition 1958, 4, :o2, 14617925, 6
+ tz.transition 1958, 10, :o1, 58476067, 24
+ tz.transition 1959, 4, :o2, 14620109, 6
+ tz.transition 1959, 10, :o1, 58484803, 24
+ tz.transition 1960, 4, :o2, 14622293, 6
+ tz.transition 1960, 10, :o1, 58493707, 24
+ tz.transition 1961, 4, :o2, 14624519, 6
+ tz.transition 1961, 10, :o1, 58502443, 24
+ tz.transition 1962, 4, :o2, 14626703, 6
+ tz.transition 1962, 10, :o1, 58511179, 24
+ tz.transition 1963, 4, :o2, 14628887, 6
+ tz.transition 1963, 10, :o1, 58519915, 24
+ tz.transition 1964, 4, :o2, 14631071, 6
+ tz.transition 1964, 10, :o1, 58528651, 24
+ tz.transition 1965, 4, :o2, 14633255, 6
+ tz.transition 1965, 10, :o1, 58537555, 24
+ tz.transition 1966, 4, :o2, 14635439, 6
+ tz.transition 1966, 10, :o1, 58546291, 24
+ tz.transition 1967, 4, :o2, 14637665, 6
+ tz.transition 1967, 10, :o1, 58555027, 24
+ tz.transition 1968, 4, :o2, 14639849, 6
+ tz.transition 1968, 10, :o1, 58563763, 24
+ tz.transition 1969, 4, :o2, 14642033, 6
+ tz.transition 1969, 10, :o1, 58572499, 24
+ tz.transition 1970, 4, :o2, 9964800
+ tz.transition 1970, 10, :o1, 25686000
+ tz.transition 1971, 4, :o2, 41414400
+ tz.transition 1971, 10, :o1, 57740400
+ tz.transition 1972, 4, :o2, 73468800
+ tz.transition 1972, 10, :o1, 89190000
+ tz.transition 1973, 4, :o2, 104918400
+ tz.transition 1973, 10, :o1, 120639600
+ tz.transition 1974, 1, :o2, 126691200
+ tz.transition 1974, 10, :o1, 152089200
+ tz.transition 1975, 2, :o2, 162374400
+ tz.transition 1975, 10, :o1, 183538800
+ tz.transition 1976, 4, :o2, 199267200
+ tz.transition 1976, 10, :o1, 215593200
+ tz.transition 1977, 4, :o2, 230716800
+ tz.transition 1977, 10, :o1, 247042800
+ tz.transition 1978, 4, :o2, 262771200
+ tz.transition 1978, 10, :o1, 278492400
+ tz.transition 1979, 4, :o2, 294220800
+ tz.transition 1979, 10, :o1, 309942000
+ tz.transition 1980, 4, :o2, 325670400
+ tz.transition 1980, 10, :o1, 341391600
+ tz.transition 1981, 4, :o2, 357120000
+ tz.transition 1981, 10, :o1, 372841200
+ tz.transition 1982, 4, :o2, 388569600
+ tz.transition 1982, 10, :o1, 404895600
+ tz.transition 1983, 4, :o2, 420019200
+ tz.transition 1983, 10, :o1, 436345200
+ tz.transition 1984, 4, :o2, 452073600
+ tz.transition 1984, 10, :o1, 467794800
+ tz.transition 1985, 4, :o2, 483523200
+ tz.transition 1985, 10, :o1, 499244400
+ tz.transition 1986, 4, :o2, 514972800
+ tz.transition 1986, 10, :o1, 530694000
+ tz.transition 1987, 4, :o2, 544608000
+ tz.transition 1987, 10, :o1, 562143600
+ tz.transition 1988, 4, :o2, 576057600
+ tz.transition 1988, 10, :o1, 594198000
+ tz.transition 1989, 4, :o2, 607507200
+ tz.transition 1989, 10, :o1, 625647600
+ tz.transition 1990, 4, :o2, 638956800
+ tz.transition 1990, 10, :o1, 657097200
+ tz.transition 1991, 4, :o2, 671011200
+ tz.transition 1991, 10, :o1, 688546800
+ tz.transition 1992, 4, :o2, 702460800
+ tz.transition 1992, 10, :o1, 719996400
+ tz.transition 1993, 4, :o2, 733910400
+ tz.transition 1993, 10, :o1, 752050800
+ tz.transition 1994, 4, :o2, 765360000
+ tz.transition 1994, 10, :o1, 783500400
+ tz.transition 1995, 4, :o2, 796809600
+ tz.transition 1995, 10, :o1, 814950000
+ tz.transition 1996, 4, :o2, 828864000
+ tz.transition 1996, 10, :o1, 846399600
+ tz.transition 1997, 4, :o2, 860313600
+ tz.transition 1997, 10, :o1, 877849200
+ tz.transition 1998, 4, :o2, 891763200
+ tz.transition 1998, 10, :o1, 909298800
+ tz.transition 1999, 4, :o2, 923212800
+ tz.transition 1999, 10, :o1, 941353200
+ tz.transition 2000, 4, :o2, 954662400
+ tz.transition 2000, 10, :o1, 972802800
+ tz.transition 2001, 4, :o2, 986112000
+ tz.transition 2001, 10, :o1, 1004252400
+ tz.transition 2002, 4, :o2, 1018166400
+ tz.transition 2002, 10, :o1, 1035702000
+ tz.transition 2003, 4, :o2, 1049616000
+ tz.transition 2003, 10, :o1, 1067151600
+ tz.transition 2004, 4, :o2, 1081065600
+ tz.transition 2004, 10, :o1, 1099206000
+ tz.transition 2005, 4, :o2, 1112515200
+ tz.transition 2005, 10, :o1, 1130655600
+ tz.transition 2006, 4, :o2, 1143964800
+ tz.transition 2006, 10, :o1, 1162105200
+ tz.transition 2007, 3, :o2, 1173600000
+ tz.transition 2007, 11, :o1, 1194159600
+ tz.transition 2008, 3, :o2, 1205049600
+ tz.transition 2008, 11, :o1, 1225609200
+ tz.transition 2009, 3, :o2, 1236499200
+ tz.transition 2009, 11, :o1, 1257058800
+ tz.transition 2010, 3, :o2, 1268553600
+ tz.transition 2010, 11, :o1, 1289113200
+ tz.transition 2011, 3, :o2, 1300003200
+ tz.transition 2011, 11, :o1, 1320562800
+ tz.transition 2012, 3, :o2, 1331452800
+ tz.transition 2012, 11, :o1, 1352012400
+ tz.transition 2013, 3, :o2, 1362902400
+ tz.transition 2013, 11, :o1, 1383462000
+ tz.transition 2014, 3, :o2, 1394352000
+ tz.transition 2014, 11, :o1, 1414911600
+ tz.transition 2015, 3, :o2, 1425801600
+ tz.transition 2015, 11, :o1, 1446361200
+ tz.transition 2016, 3, :o2, 1457856000
+ tz.transition 2016, 11, :o1, 1478415600
+ tz.transition 2017, 3, :o2, 1489305600
+ tz.transition 2017, 11, :o1, 1509865200
+ tz.transition 2018, 3, :o2, 1520755200
+ tz.transition 2018, 11, :o1, 1541314800
+ tz.transition 2019, 3, :o2, 1552204800
+ tz.transition 2019, 11, :o1, 1572764400
+ tz.transition 2020, 3, :o2, 1583654400
+ tz.transition 2020, 11, :o1, 1604214000
+ tz.transition 2021, 3, :o2, 1615708800
+ tz.transition 2021, 11, :o1, 1636268400
+ tz.transition 2022, 3, :o2, 1647158400
+ tz.transition 2022, 11, :o1, 1667718000
+ tz.transition 2023, 3, :o2, 1678608000
+ tz.transition 2023, 11, :o1, 1699167600
+ tz.transition 2024, 3, :o2, 1710057600
+ tz.transition 2024, 11, :o1, 1730617200
+ tz.transition 2025, 3, :o2, 1741507200
+ tz.transition 2025, 11, :o1, 1762066800
+ tz.transition 2026, 3, :o2, 1772956800
+ tz.transition 2026, 11, :o1, 1793516400
+ tz.transition 2027, 3, :o2, 1805011200
+ tz.transition 2027, 11, :o1, 1825570800
+ tz.transition 2028, 3, :o2, 1836460800
+ tz.transition 2028, 11, :o1, 1857020400
+ tz.transition 2029, 3, :o2, 1867910400
+ tz.transition 2029, 11, :o1, 1888470000
+ tz.transition 2030, 3, :o2, 1899360000
+ tz.transition 2030, 11, :o1, 1919919600
+ tz.transition 2031, 3, :o2, 1930809600
+ tz.transition 2031, 11, :o1, 1951369200
+ tz.transition 2032, 3, :o2, 1962864000
+ tz.transition 2032, 11, :o1, 1983423600
+ tz.transition 2033, 3, :o2, 1994313600
+ tz.transition 2033, 11, :o1, 2014873200
+ tz.transition 2034, 3, :o2, 2025763200
+ tz.transition 2034, 11, :o1, 2046322800
+ tz.transition 2035, 3, :o2, 2057212800
+ tz.transition 2035, 11, :o1, 2077772400
+ tz.transition 2036, 3, :o2, 2088662400
+ tz.transition 2036, 11, :o1, 2109222000
+ tz.transition 2037, 3, :o2, 2120112000
+ tz.transition 2037, 11, :o1, 2140671600
+ tz.transition 2038, 3, :o2, 14792981, 6
+ tz.transition 2038, 11, :o1, 59177635, 24
+ tz.transition 2039, 3, :o2, 14795165, 6
+ tz.transition 2039, 11, :o1, 59186371, 24
+ tz.transition 2040, 3, :o2, 14797349, 6
+ tz.transition 2040, 11, :o1, 59195107, 24
+ tz.transition 2041, 3, :o2, 14799533, 6
+ tz.transition 2041, 11, :o1, 59203843, 24
+ tz.transition 2042, 3, :o2, 14801717, 6
+ tz.transition 2042, 11, :o1, 59212579, 24
+ tz.transition 2043, 3, :o2, 14803901, 6
+ tz.transition 2043, 11, :o1, 59221315, 24
+ tz.transition 2044, 3, :o2, 14806127, 6
+ tz.transition 2044, 11, :o1, 59230219, 24
+ tz.transition 2045, 3, :o2, 14808311, 6
+ tz.transition 2045, 11, :o1, 59238955, 24
+ tz.transition 2046, 3, :o2, 14810495, 6
+ tz.transition 2046, 11, :o1, 59247691, 24
+ tz.transition 2047, 3, :o2, 14812679, 6
+ tz.transition 2047, 11, :o1, 59256427, 24
+ tz.transition 2048, 3, :o2, 14814863, 6
+ tz.transition 2048, 11, :o1, 59265163, 24
+ tz.transition 2049, 3, :o2, 14817089, 6
+ tz.transition 2049, 11, :o1, 59274067, 24
+ tz.transition 2050, 3, :o2, 14819273, 6
+ tz.transition 2050, 11, :o1, 59282803, 24
+ end
+ end
+ end
+ end
+end
View
136 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Chihuahua.rb
@@ -0,0 +1,136 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module America
+ module Chihuahua
+ include TimezoneDefinition
+
+ timezone 'America/Chihuahua' do |tz|
+ tz.offset :o0, -25460, 0, :LMT
+ tz.offset :o1, -25200, 0, :MST
+ tz.offset :o2, -21600, 0, :CST
+ tz.offset :o3, -21600, 3600, :CDT
+ tz.offset :o4, -25200, 3600, :MDT
+
+ tz.transition 1922, 1, :o1, 58153339, 24
+ tz.transition 1927, 6, :o2, 9700171, 4
+ tz.transition 1930, 11, :o1, 9705183, 4
+ tz.transition 1931, 5, :o2, 9705855, 4
+ tz.transition 1931, 10, :o1, 9706463, 4
+ tz.transition 1932, 4, :o2, 58243171, 24
+ tz.transition 1996, 4, :o3, 828864000
+ tz.transition 1996, 10, :o2, 846399600
+ tz.transition 1997, 4, :o3, 860313600
+ tz.transition 1997, 10, :o2, 877849200
+ tz.transition 1998, 4, :o4, 891766800
+ tz.transition 1998, 10, :o1, 909302400
+ tz.transition 1999, 4, :o4, 923216400
+ tz.transition 1999, 10, :o1, 941356800
+ tz.transition 2000, 4, :o4, 954666000
+ tz.transition 2000, 10, :o1, 972806400
+ tz.transition 2001, 5, :o4, 989139600
+ tz.transition 2001, 9, :o1, 1001836800
+ tz.transition 2002, 4, :o4, 1018170000
+ tz.transition 2002, 10, :o1, 1035705600
+ tz.transition 2003, 4, :o4, 1049619600
+ tz.transition 2003, 10, :o1, 1067155200
+ tz.transition 2004, 4, :o4, 1081069200
+ tz.transition 2004, 10, :o1, 1099209600
+ tz.transition 2005, 4, :o4, 1112518800
+ tz.transition 2005, 10, :o1, 1130659200
+ tz.transition 2006, 4, :o4, 1143968400
+ tz.transition 2006, 10, :o1, 1162108800
+ tz.transition 2007, 4, :o4, 1175418000
+ tz.transition 2007, 10, :o1, 1193558400
+ tz.transition 2008, 4, :o4, 1207472400
+ tz.transition 2008, 10, :o1, 1225008000
+ tz.transition 2009, 4, :o4, 1238922000
+ tz.transition 2009, 10, :o1, 1256457600
+ tz.transition 2010, 4, :o4, 1270371600
+ tz.transition 2010, 10, :o1, 1288512000
+ tz.transition 2011, 4, :o4, 1301821200
+ tz.transition 2011, 10, :o1, 1319961600
+ tz.transition 2012, 4, :o4, 1333270800
+ tz.transition 2012, 10, :o1, 1351411200
+ tz.transition 2013, 4, :o4, 1365325200
+ tz.transition 2013, 10, :o1, 1382860800
+ tz.transition 2014, 4, :o4, 1396774800
+ tz.transition 2014, 10, :o1, 1414310400
+ tz.transition 2015, 4, :o4, 1428224400
+ tz.transition 2015, 10, :o1, 1445760000
+ tz.transition 2016, 4, :o4, 1459674000
+ tz.transition 2016, 10, :o1, 1477814400
+ tz.transition 2017, 4, :o4, 1491123600
+ tz.transition 2017, 10, :o1, 1509264000
+ tz.transition 2018, 4, :o4, 1522573200
+ tz.transition 2018, 10, :o1, 1540713600
+ tz.transition 2019, 4, :o4, 1554627600
+ tz.transition 2019, 10, :o1, 1572163200
+ tz.transition 2020, 4, :o4, 1586077200
+ tz.transition 2020, 10, :o1, 1603612800
+ tz.transition 2021, 4, :o4, 1617526800
+ tz.transition 2021, 10, :o1, 1635667200
+ tz.transition 2022, 4, :o4, 1648976400
+ tz.transition 2022, 10, :o1, 1667116800
+ tz.transition 2023, 4, :o4, 1680426000
+ tz.transition 2023, 10, :o1, 1698566400
+ tz.transition 2024, 4, :o4, 1712480400
+ tz.transition 2024, 10, :o1, 1730016000
+ tz.transition 2025, 4, :o4, 1743930000
+ tz.transition 2025, 10, :o1, 1761465600
+ tz.transition 2026, 4, :o4, 1775379600
+ tz.transition 2026, 10, :o1, 1792915200
+ tz.transition 2027, 4, :o4, 1806829200
+ tz.transition 2027, 10, :o1, 1824969600
+ tz.transition 2028, 4, :o4, 1838278800
+ tz.transition 2028, 10, :o1, 1856419200
+ tz.transition 2029, 4, :o4, 1869728400
+ tz.transition 2029, 10, :o1, 1887868800
+ tz.transition 2030, 4, :o4, 1901782800
+ tz.transition 2030, 10, :o1, 1919318400
+ tz.transition 2031, 4, :o4, 1933232400
+ tz.transition 2031, 10, :o1, 1950768000
+ tz.transition 2032, 4, :o4, 1964682000
+ tz.transition 2032, 10, :o1, 1982822400
+ tz.transition 2033, 4, :o4, 1996131600
+ tz.transition 2033, 10, :o1, 2014272000
+ tz.transition 2034, 4, :o4, 2027581200
+ tz.transition 2034, 10, :o1, 2045721600
+ tz.transition 2035, 4, :o4, 2059030800
+ tz.transition 2035, 10, :o1, 2077171200
+ tz.transition 2036, 4, :o4, 2091085200
+ tz.transition 2036, 10, :o1, 2108620800
+ tz.transition 2037, 4, :o4, 2122534800
+ tz.transition 2037, 10, :o1, 2140070400
+ tz.transition 2038, 4, :o4, 19724143, 8
+ tz.transition 2038, 10, :o1, 14794367, 6
+ tz.transition 2039, 4, :o4, 19727055, 8
+ tz.transition 2039, 10, :o1, 14796551, 6
+ tz.transition 2040, 4, :o4, 19729967, 8
+ tz.transition 2040, 10, :o1, 14798735, 6
+ tz.transition 2041, 4, :o4, 19732935, 8
+ tz.transition 2041, 10, :o1, 14800919, 6
+ tz.transition 2042, 4, :o4, 19735847, 8
+ tz.transition 2042, 10, :o1, 14803103, 6
+ tz.transition 2043, 4, :o4, 19738759, 8
+ tz.transition 2043, 10, :o1, 14805287, 6
+ tz.transition 2044, 4, :o4, 19741671, 8
+ tz.transition 2044, 10, :o1, 14807513, 6
+ tz.transition 2045, 4, :o4, 19744583, 8
+ tz.transition 2045, 10, :o1, 14809697, 6
+ tz.transition 2046, 4, :o4, 19747495, 8
+ tz.transition 2046, 10, :o1, 14811881, 6
+ tz.transition 2047, 4, :o4, 19750463, 8
+ tz.transition 2047, 10, :o1, 14814065, 6
+ tz.transition 2048, 4, :o4, 19753375, 8
+ tz.transition 2048, 10, :o1, 14816249, 6
+ tz.transition 2049, 4, :o4, 19756287, 8
+ tz.transition 2049, 10, :o1, 14818475, 6
+ tz.transition 2050, 4, :o4, 19759199, 8
+ tz.transition 2050, 10, :o1, 14820659, 6
+ end
+ end
+ end
+ end
+end
View
204 activesupport/lib/active_support/vendor/tzinfo-0.3.8/tzinfo/definitions/America/Denver.rb
@@ -0,0 +1,204 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module America
+ module Denver
+ include TimezoneDefinition
+
+ timezone 'America/Denver' do |tz|
+ tz.offset :o0, -25196, 0, :LMT
+ tz.offset :o1, -25200, 0, :MST
+ tz.offset :o2, -25200, 3600, :MDT
+ tz.offset :o3, -25200, 3600, :MWT
+ tz.offset :o4, -25200, 3600, :MPT
+
+ tz.transition 1883, 11, :o1, 57819199, 24
+ tz.transition 1918, 3, :o2, 19373471, 8
+ tz.transition 1918, 10, :o1, 14531363, 6
+ tz.transition 1919, 3, :o2, 19376383, 8
+ tz.transition 1919, 10, :o1, 14533547, 6
+ tz.transition 1920, 3, :o2, 19379295, 8
+ tz.transition 1920, 10, :o1, 14535773, 6
+ tz.transition 1921, 3, :o2, 19382207, 8
+ tz.transition 1921, 5, :o1, 14536991, 6
+ tz.transition 1942, 2, :o3, 19443199, 8
+ tz.transition 1945, 8, :o4, 58360379, 24
+ tz.transition 1945, 9, :o1, 14590373, 6
+ tz.transition 1965, 4, :o2, 19511007, 8
+ tz.transition 1965, 10, :o1, 14634389, 6
+ tz.transition 1966, 4, :o2, 19513919, 8
+ tz.transition 1966, 10, :o1, 14636573, 6
+ tz.transition 1967, 4, :o2, 19516887, 8
+ tz.transition 1967, 10, :o1, 14638757, 6
+ tz.transition 1968, 4, :o2, 19519799, 8
+ tz.transition 1968, 10, :o1, 14640941, 6
+ tz.transition 1969, 4, :o2, 19522711, 8
+ tz.transition 1969, 10, :o1, 14643125, 6
+ tz.transition 1970, 4, :o2, 9968400
+ tz.transition 1970, 10, :o1, 25689600
+ tz.transition 1971, 4, :o2, 41418000
+ tz.transition 1971, 10, :o1, 57744000
+ tz.transition 1972, 4, :o2, 73472400
+ tz.transition 1972, 10, :o1, 89193600
+ tz.transition 1973, 4, :o2, 104922000
+ tz.transition 1973, 10, :o1, 120643200
+ tz.transition 1974, 1, :o2, 126694800
+ tz.transition 1974, 10, :o1, 152092800
+ tz.transition 1975, 2, :o2, 162378000
+ tz.transition 1975, 10, :o1, 183542400
+ tz.transition 1976, 4, :o2, 199270800
+ tz.transition 1976, 10, :o1, 215596800
+ tz.transition 1977, 4, :o2, 230720400
+ tz.transition 1977, 10, :o1, 247046400
+ tz.transition 1978, 4, :o2, 262774800
+ tz.transition 1978, 10, :o1, 278496000
+ tz.transition 1979, 4, :o2, 294224400
+ tz.transition 1979, 10, :o1, 309945600
+ tz.transition 1980, 4, :o2, 325674000
+ tz.transition 1980, 10, :o1, 341395200
+ tz.transition 1981, 4, :o2, 357123600
+ tz.transition 1981, 10, :o1, 372844800
+ tz.transition 1982, 4, :o2, 388573200
+ tz.transition 1982, 10, :o1, 404899200
+ tz.transition 1983, 4, :o2, 420022800
+ tz.transition 1983, 10, :o1, 436348800
+ tz.transition 1984, 4, :o2, 452077200
+ tz.transition 1984, 10, :o1, 467798400
+ tz.transition 1985, 4, :o2, 483526800
+ tz.transition 1985, 10, :o1, 499248000
+ tz.transition 1986, 4, :o2, 514976400
+ tz.transition 1986, 10, :o1, 530697600
+ tz.transition 1987, 4, :o2, 544611600
+ tz.transition 1987, 10, :o1, 562147200
+ tz.transition 1988, 4, :o2, 576061200
+ tz.transition 1988, 10, :o1, 594201600
+ tz.transition 1989, 4, :o2, 607510800
+ tz.transition 1989, 10, :o1, 625651200
+ tz.transition 1990, 4, :o2, 638960400
+ tz.transition 1990, 10, :o1, 657100800
+ tz.transition 1991, 4, :o2, 671014800
+ tz.transition 1991, 10, :o1, 688550400
+ tz.transition 1992, 4, :o2, 702464400
+ tz.transition 1992, 10, :o1, 720000000
+ tz.transition 1993, 4, :o2, 733914000
+ tz.transition 1993, 10, :o1, 752054400