aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorGeoff Buesing <gbuesing@gmail.com>2009-06-07 21:43:44 -0500
committerGeoff Buesing <gbuesing@gmail.com>2009-06-07 21:43:44 -0500
commit71b1a4b39d08e401cf8a73d1a551c532da509fa7 (patch)
treecfec0ae640ab9cf17a0d95e15a9b22186fafaf89 /activesupport
parent184986067a3294cb178a9dd8955b934ff3feb9a0 (diff)
downloadrails-71b1a4b39d08e401cf8a73d1a551c532da509fa7.tar.gz
rails-71b1a4b39d08e401cf8a73d1a551c532da509fa7.tar.bz2
rails-71b1a4b39d08e401cf8a73d1a551c532da509fa7.zip
Kathmandu TimeZone: reference Asia/Kathmandu zone directly instead of through linked timezone
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/values/time_zone.rb2
-rw-r--r--activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kathmandu.rb20
-rw-r--r--activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Katmandu.rb13
3 files changed, 21 insertions, 14 deletions
diff --git a/activesupport/lib/active_support/values/time_zone.rb b/activesupport/lib/active_support/values/time_zone.rb
index b37dae1c2a..564528bfe2 100644
--- a/activesupport/lib/active_support/values/time_zone.rb
+++ b/activesupport/lib/active_support/values/time_zone.rb
@@ -125,7 +125,7 @@ module ActiveSupport
"Kolkata" => "Asia/Kolkata",
"Mumbai" => "Asia/Kolkata",
"New Delhi" => "Asia/Kolkata",
- "Kathmandu" => "Asia/Katmandu",
+ "Kathmandu" => "Asia/Kathmandu",
"Astana" => "Asia/Dhaka",
"Dhaka" => "Asia/Dhaka",
"Sri Jayawardenepura" => "Asia/Colombo",
diff --git a/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kathmandu.rb b/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kathmandu.rb
new file mode 100644
index 0000000000..37b241612e
--- /dev/null
+++ b/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kathmandu.rb
@@ -0,0 +1,20 @@
+require 'tzinfo/timezone_definition'
+
+module TZInfo
+ module Definitions
+ module Asia
+ module Kathmandu
+ include TimezoneDefinition
+
+ timezone 'Asia/Kathmandu' do |tz|
+ tz.offset :o0, 20476, 0, :LMT
+ tz.offset :o1, 19800, 0, :IST
+ tz.offset :o2, 20700, 0, :NPT
+
+ tz.transition 1919, 12, :o1, 52322204081, 21600
+ tz.transition 1985, 12, :o2, 504901800
+ end
+ end
+ end
+ end
+end
diff --git a/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Katmandu.rb b/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Katmandu.rb
deleted file mode 100644
index ac53f39242..0000000000
--- a/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Katmandu.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-require 'tzinfo/timezone_definition'
-
-module TZInfo
- module Definitions
- module Asia
- module Katmandu
- include TimezoneDefinition
-
- linked_timezone 'Asia/Katmandu', 'Asia/Kathmandu'
- end
- end
- end
-end