Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… through linked timezone
  • Loading branch information...
commit 71b1a4b39d08e401cf8a73d1a551c532da509fa7 1 parent 1849860
@gbuesing gbuesing authored
View
2  activesupport/lib/active_support/values/time_zone.rb
@@ -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",
View
20 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
View
13 activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Katmandu.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.