Kathmandu TimeZone: reference Asia/Kathmandu zone directly instead of through linked timezone

This commit is contained in:
Geoff Buesing
2009-06-07 21:43:44 -05:00
parent 184986067a
commit 71b1a4b39d
3 changed files with 21 additions and 14 deletions

View File

@@ -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",

View File

@@ -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

View File

@@ -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