Permalink
Browse files

Kathmandu TimeZone: reference Asia/Kathmandu zone directly instead of…

… through linked timezone
  • Loading branch information...
1 parent 1849860 commit 71b1a4b39d08e401cf8a73d1a551c532da509fa7 @gbuesing gbuesing committed Jun 8, 2009
@@ -125,7 +125,7 @@ class TimeZone
"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",
@@ -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
@@ -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

0 comments on commit 71b1a4b

Please sign in to comment.