tzinfo 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of tzinfo might be problematic. Click here for more details.
- data/CHANGES +23 -18
- data/Rakefile +1 -1
- data/lib/tzinfo/definitions/Africa/Timbuktu.rb +1 -0
- data/lib/tzinfo/definitions/America/Argentina/ComodRivadavia.rb +1 -0
- data/lib/tzinfo/definitions/America/Atka.rb +1 -0
- data/lib/tzinfo/definitions/America/Buenos_Aires.rb +1 -0
- data/lib/tzinfo/definitions/America/Catamarca.rb +1 -0
- data/lib/tzinfo/definitions/America/Cordoba.rb +1 -0
- data/lib/tzinfo/definitions/America/Ensenada.rb +1 -0
- data/lib/tzinfo/definitions/America/Fort_Wayne.rb +1 -0
- data/lib/tzinfo/definitions/America/Guatemala.rb +3 -1
- data/lib/tzinfo/definitions/America/Indianapolis.rb +1 -0
- data/lib/tzinfo/definitions/America/Jujuy.rb +1 -0
- data/lib/tzinfo/definitions/America/Knox_IN.rb +1 -0
- data/lib/tzinfo/definitions/America/Louisville.rb +1 -0
- data/lib/tzinfo/definitions/America/Managua.rb +7 -5
- data/lib/tzinfo/definitions/America/Mendoza.rb +1 -0
- data/lib/tzinfo/definitions/America/Porto_Acre.rb +1 -0
- data/lib/tzinfo/definitions/America/Rosario.rb +1 -0
- data/lib/tzinfo/definitions/America/Shiprock.rb +1 -0
- data/lib/tzinfo/definitions/America/Tegucigalpa.rb +3 -1
- data/lib/tzinfo/definitions/America/Virgin.rb +1 -0
- data/lib/tzinfo/definitions/Antarctica/South_Pole.rb +1 -0
- data/lib/tzinfo/definitions/Arctic/Longyearbyen.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Ashkhabad.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Chungking.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Dacca.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Istanbul.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Macao.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Tel_Aviv.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Thimbu.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Ujung_Pandang.rb +1 -0
- data/lib/tzinfo/definitions/Asia/Ulan_Bator.rb +1 -0
- data/lib/tzinfo/definitions/Atlantic/Jan_Mayen.rb +1 -0
- data/lib/tzinfo/definitions/Australia/ACT.rb +1 -0
- data/lib/tzinfo/definitions/Australia/Canberra.rb +1 -0
- data/lib/tzinfo/definitions/Australia/LHI.rb +1 -0
- data/lib/tzinfo/definitions/Australia/NSW.rb +1 -0
- data/lib/tzinfo/definitions/Australia/North.rb +1 -0
- data/lib/tzinfo/definitions/Australia/Queensland.rb +1 -0
- data/lib/tzinfo/definitions/Australia/South.rb +1 -0
- data/lib/tzinfo/definitions/Australia/Tasmania.rb +1 -0
- data/lib/tzinfo/definitions/Australia/Victoria.rb +1 -0
- data/lib/tzinfo/definitions/Australia/West.rb +1 -0
- data/lib/tzinfo/definitions/Australia/Yancowinna.rb +1 -0
- data/lib/tzinfo/definitions/Brazil/Acre.rb +1 -0
- data/lib/tzinfo/definitions/Brazil/DeNoronha.rb +1 -0
- data/lib/tzinfo/definitions/Brazil/East.rb +1 -0
- data/lib/tzinfo/definitions/Brazil/West.rb +1 -0
- data/lib/tzinfo/definitions/Canada/Atlantic.rb +1 -0
- data/lib/tzinfo/definitions/Canada/Central.rb +1 -0
- data/lib/tzinfo/definitions/Canada/East__m__Saskatchewan.rb +1 -0
- data/lib/tzinfo/definitions/Canada/Eastern.rb +1 -0
- data/lib/tzinfo/definitions/Canada/Mountain.rb +1 -0
- data/lib/tzinfo/definitions/Canada/Newfoundland.rb +1 -0
- data/lib/tzinfo/definitions/Canada/Pacific.rb +1 -0
- data/lib/tzinfo/definitions/Canada/Saskatchewan.rb +1 -0
- data/lib/tzinfo/definitions/Canada/Yukon.rb +1 -0
- data/lib/tzinfo/definitions/Chile/Continental.rb +1 -0
- data/lib/tzinfo/definitions/Chile/EasterIsland.rb +1 -0
- data/lib/tzinfo/definitions/Cuba.rb +1 -0
- data/lib/tzinfo/definitions/Egypt.rb +1 -0
- data/lib/tzinfo/definitions/Eire.rb +1 -0
- data/lib/tzinfo/definitions/Etc/GMT0.rb +1 -0
- data/lib/tzinfo/definitions/Etc/GMT__m__0.rb +1 -0
- data/lib/tzinfo/definitions/Etc/GMT__p__0.rb +1 -0
- data/lib/tzinfo/definitions/Etc/Greenwich.rb +1 -0
- data/lib/tzinfo/definitions/Etc/Universal.rb +1 -0
- data/lib/tzinfo/definitions/Etc/Zulu.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Belfast.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Bratislava.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Ljubljana.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Mariehamn.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Nicosia.rb +1 -0
- data/lib/tzinfo/definitions/Europe/San_Marino.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Sarajevo.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Skopje.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Tiraspol.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Vatican.rb +1 -0
- data/lib/tzinfo/definitions/Europe/Zagreb.rb +1 -0
- data/lib/tzinfo/definitions/GB.rb +1 -0
- data/lib/tzinfo/definitions/GB__m__Eire.rb +1 -0
- data/lib/tzinfo/definitions/GMT.rb +1 -0
- data/lib/tzinfo/definitions/GMT0.rb +1 -0
- data/lib/tzinfo/definitions/GMT__m__0.rb +1 -0
- data/lib/tzinfo/definitions/GMT__p__0.rb +1 -0
- data/lib/tzinfo/definitions/Greenwich.rb +1 -0
- data/lib/tzinfo/definitions/Hongkong.rb +1 -0
- data/lib/tzinfo/definitions/Iceland.rb +1 -0
- data/lib/tzinfo/definitions/Iran.rb +1 -0
- data/lib/tzinfo/definitions/Israel.rb +1 -0
- data/lib/tzinfo/definitions/Jamaica.rb +1 -0
- data/lib/tzinfo/definitions/Japan.rb +1 -0
- data/lib/tzinfo/definitions/Kwajalein.rb +1 -0
- data/lib/tzinfo/definitions/Libya.rb +1 -0
- data/lib/tzinfo/definitions/Mexico/BajaNorte.rb +1 -0
- data/lib/tzinfo/definitions/Mexico/BajaSur.rb +1 -0
- data/lib/tzinfo/definitions/Mexico/General.rb +1 -0
- data/lib/tzinfo/definitions/Mideast/Riyadh87.rb +1 -0
- data/lib/tzinfo/definitions/Mideast/Riyadh88.rb +1 -0
- data/lib/tzinfo/definitions/Mideast/Riyadh89.rb +1 -0
- data/lib/tzinfo/definitions/NZ.rb +1 -0
- data/lib/tzinfo/definitions/NZ__m__CHAT.rb +1 -0
- data/lib/tzinfo/definitions/Navajo.rb +1 -0
- data/lib/tzinfo/definitions/PRC.rb +1 -0
- data/lib/tzinfo/definitions/Pacific/Samoa.rb +1 -0
- data/lib/tzinfo/definitions/Pacific/Yap.rb +1 -0
- data/lib/tzinfo/definitions/Poland.rb +1 -0
- data/lib/tzinfo/definitions/Portugal.rb +1 -0
- data/lib/tzinfo/definitions/ROC.rb +1 -0
- data/lib/tzinfo/definitions/ROK.rb +1 -0
- data/lib/tzinfo/definitions/Singapore.rb +1 -0
- data/lib/tzinfo/definitions/Turkey.rb +1 -0
- data/lib/tzinfo/definitions/UCT.rb +1 -0
- data/lib/tzinfo/definitions/US/Alaska.rb +1 -0
- data/lib/tzinfo/definitions/US/Aleutian.rb +1 -0
- data/lib/tzinfo/definitions/US/Arizona.rb +1 -0
- data/lib/tzinfo/definitions/US/Central.rb +1 -0
- data/lib/tzinfo/definitions/US/East__m__Indiana.rb +1 -0
- data/lib/tzinfo/definitions/US/Eastern.rb +1 -0
- data/lib/tzinfo/definitions/US/Hawaii.rb +1 -0
- data/lib/tzinfo/definitions/US/Indiana__m__Starke.rb +1 -0
- data/lib/tzinfo/definitions/US/Michigan.rb +1 -0
- data/lib/tzinfo/definitions/US/Mountain.rb +1 -0
- data/lib/tzinfo/definitions/US/Pacific.rb +1 -0
- data/lib/tzinfo/definitions/US/Pacific__m__New.rb +1 -0
- data/lib/tzinfo/definitions/US/Samoa.rb +1 -0
- data/lib/tzinfo/definitions/UTC.rb +1 -0
- data/lib/tzinfo/definitions/Universal.rb +1 -0
- data/lib/tzinfo/definitions/W__m__SU.rb +1 -0
- data/lib/tzinfo/definitions/Zulu.rb +1 -0
- data/lib/tzinfo/timezone.rb +15 -5
- data/lib/tzinfo/tzdataparser.rb +1 -0
- data/test/tc_timezone.rb +33 -0
- metadata +2 -2
data/CHANGES
CHANGED
@@ -1,5 +1,18 @@
|
|
1
|
-
Version 0.2.
|
2
|
-
|
1
|
+
== Version 0.2.2 (tzdata v2006g) - 17-May-2006
|
2
|
+
|
3
|
+
* Use class-scoped instance variables to store the Timezone identifier and
|
4
|
+
singleton instance. Loading a linked zone no longer causes the parent
|
5
|
+
zone's identifier to be changed. The instance method of a linked zone class
|
6
|
+
also now returns an instance of the linked zone class rather than the parent
|
7
|
+
class. Closes #4502.
|
8
|
+
* The zdumptest utility now compares the TZInfo zone identifier with the zdump
|
9
|
+
zone identifier.
|
10
|
+
* The zdumptestall utility now exits if not supplied with enough parameters.
|
11
|
+
* Updated to tzdata version 2006g
|
12
|
+
(http://article.gmane.org/gmane.comp.time.tz/1008).
|
13
|
+
|
14
|
+
|
15
|
+
== Version 0.2.1 (tzdata v2006d) - 17-Apr-2006
|
3
16
|
|
4
17
|
* Fix a performance issue caused in 0.2.0 with Timezone.local_to_utc.
|
5
18
|
Conversions performed on TimeOrDateTime instances passed to <=> are now
|
@@ -23,8 +36,7 @@ Version 0.2.1 (tzdata v2006d) - 17-Apr-2006
|
|
23
36
|
tz.utc_to_local(Time.local(2006, 4, 17, 15, 40, 0))
|
24
37
|
|
25
38
|
|
26
|
-
Version 0.2.0 (tzdata v2006c) - 3-Apr-2006
|
27
|
-
------------------------------------------
|
39
|
+
== Version 0.2.0 (tzdata v2006c) - 3-Apr-2006
|
28
40
|
|
29
41
|
* Use timestamps rather than DateTime objects in zone files for times between
|
30
42
|
1970 and 2037 (the range of Time).
|
@@ -47,8 +59,7 @@ Version 0.2.0 (tzdata v2006c) - 3-Apr-2006
|
|
47
59
|
(http://article.gmane.org/gmane.comp.time.tz/920).
|
48
60
|
|
49
61
|
|
50
|
-
Version 0.1.2 (tzdata v2006a) - 5-Feb-2006
|
51
|
-
------------------------------------------
|
62
|
+
== Version 0.1.2 (tzdata v2006a) - 5-Feb-2006
|
52
63
|
|
53
64
|
* Add lib directory to the load path when tzinfo is required. Makes it easier
|
54
65
|
to use tzinfo gem when unpacked to vendor directory in rails.
|
@@ -63,16 +74,14 @@ Version 0.1.2 (tzdata v2006a) - 5-Feb-2006
|
|
63
74
|
than a NameError.
|
64
75
|
|
65
76
|
|
66
|
-
Version 0.1.1 (tzdata v2005q) - 18-Dec-2005
|
67
|
-
-------------------------------------------
|
77
|
+
== Version 0.1.1 (tzdata v2005q) - 18-Dec-2005
|
68
78
|
|
69
79
|
* Timezones that are defined by a single unbounded period (e.g. UTC) now
|
70
80
|
work again.
|
71
81
|
* Updated to tzdata version 2005q.
|
72
82
|
|
73
83
|
|
74
|
-
Version 0.1.0 (tzdata v2005n) - 27-Nov-2005
|
75
|
-
-------------------------------------------
|
84
|
+
== Version 0.1.0 (tzdata v2005n) - 27-Nov-2005
|
76
85
|
|
77
86
|
* period_for_local and local_to_utc now allow resolution of ambiguous
|
78
87
|
times (e.g. when switching from daylight savings to standard time).
|
@@ -106,8 +115,7 @@ Version 0.1.0 (tzdata v2005n) - 27-Nov-2005
|
|
106
115
|
* Updated to tzdata version 2005n.
|
107
116
|
|
108
117
|
|
109
|
-
Version 0.0.4 (tzdata v2005m) - 18-Sep-2005
|
110
|
-
-------------------------------------------
|
118
|
+
== Version 0.0.4 (tzdata v2005m) - 18-Sep-2005
|
111
119
|
|
112
120
|
* Removed debug output accidentally included in the previous release.
|
113
121
|
* Fixed a bug in the generation of friendly zone identifiers (was inserting
|
@@ -118,8 +126,7 @@ Version 0.0.4 (tzdata v2005m) - 18-Sep-2005
|
|
118
126
|
some selected timezones.
|
119
127
|
|
120
128
|
|
121
|
-
Version 0.0.3 (tzdata v2005m) - 17-Sep-2005
|
122
|
-
-------------------------------------------
|
129
|
+
== Version 0.0.3 (tzdata v2005m) - 17-Sep-2005
|
123
130
|
|
124
131
|
* Reduced visibility of some methods added in Timezone#setup and Country#setup.
|
125
132
|
* Added name method to Timezone (returns the identifier).
|
@@ -142,8 +149,7 @@ Version 0.0.3 (tzdata v2005m) - 17-Sep-2005
|
|
142
149
|
<%= time_zone_select 'user', 'time_zone', TZInfo::Timezone.all.sort, :model => TZInfo::Timezone %>
|
143
150
|
|
144
151
|
|
145
|
-
Version 0.0.2 (tzdata v2005m) - 13-Sep-2005
|
146
|
-
-------------------------------------------
|
152
|
+
== Version 0.0.2 (tzdata v2005m) - 13-Sep-2005
|
147
153
|
|
148
154
|
* Country and Timezone data is now loaded into class rather than instance
|
149
155
|
variables. This makes Timezone links more efficient and saves memory if
|
@@ -161,7 +167,6 @@ article about using TZInfo with Rails
|
|
161
167
|
(http://lunchroom.lunchboxsoftware.com/pages/tzinfo_rails)
|
162
168
|
|
163
169
|
|
164
|
-
Version 0.0.1 (tzdata v2005m) - 29-Aug-2005
|
165
|
-
-------------------------------------------
|
170
|
+
== Version 0.0.1 (tzdata v2005m) - 29-Aug-2005
|
166
171
|
|
167
172
|
* First release.
|
data/Rakefile
CHANGED
@@ -12,7 +12,9 @@ add_period(1974,2) {TimezonePeriod.new(130914000,422344800,-21600,0,:CST)}
|
|
12
12
|
add_period(1983,5) {TimezonePeriod.new(422344800,433054800,-21600,3600,:CDT)}
|
13
13
|
add_period(1983,9) {TimezonePeriod.new(433054800,669708000,-21600,0,:CST)}
|
14
14
|
add_period(1991,3) {TimezonePeriod.new(669708000,684219600,-21600,3600,:CDT)}
|
15
|
-
add_period(1991,9) {TimezonePeriod.new(684219600,
|
15
|
+
add_period(1991,9) {TimezonePeriod.new(684219600,1146376800,-21600,0,:CST)}
|
16
|
+
add_period(2006,4) {TimezonePeriod.new(1146376800,1159678800,-21600,3600,:CDT)}
|
17
|
+
add_period(2006,10) {TimezonePeriod.new(1159678800,nil,-21600,0,:CST)}
|
16
18
|
end
|
17
19
|
end
|
18
20
|
end
|
@@ -14,12 +14,14 @@ add_period(1979,3) {TimezonePeriod.new(290584800,299134800,-21600,3600,:CDT)}
|
|
14
14
|
add_period(1979,6) {TimezonePeriod.new(299134800,322034400,-21600,0,:CST)}
|
15
15
|
add_period(1980,3) {TimezonePeriod.new(322034400,330584400,-21600,3600,:CDT)}
|
16
16
|
add_period(1980,6) {TimezonePeriod.new(330584400,694260000,-21600,0,:CST)}
|
17
|
-
add_period(1992,1) {TimezonePeriod.new(694260000,717310800,-
|
18
|
-
add_period(1992,9) {TimezonePeriod.new(717310800,
|
19
|
-
add_period(1993,1) {TimezonePeriod.new(
|
20
|
-
add_period(
|
17
|
+
add_period(1992,1) {TimezonePeriod.new(694260000,717310800,-18000,0,:EST)}
|
18
|
+
add_period(1992,9) {TimezonePeriod.new(717310800,725868000,-21600,0,:CST)}
|
19
|
+
add_period(1993,1) {TimezonePeriod.new(725868000,852094800,-18000,0,:EST)}
|
20
|
+
add_period(1997,1) {TimezonePeriod.new(852094800,1113112800,-21600,0,:CST)}
|
21
21
|
add_period(2005,4) {TimezonePeriod.new(1113112800,1128229200,-21600,3600,:CDT)}
|
22
|
-
add_period(2005,10) {TimezonePeriod.new(1128229200,
|
22
|
+
add_period(2005,10) {TimezonePeriod.new(1128229200,1146384000,-21600,0,:CST)}
|
23
|
+
add_period(2006,4) {TimezonePeriod.new(1146384000,1159678800,-21600,3600,:CDT)}
|
24
|
+
add_period(2006,10) {TimezonePeriod.new(1159678800,nil,-21600,0,:CST)}
|
23
25
|
end
|
24
26
|
end
|
25
27
|
end
|
@@ -10,7 +10,9 @@ add_period(1921,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(52332064033,2
|
|
10
10
|
add_period(1987,5) {TimezonePeriod.new(547020000,559717200,-21600,3600,:CDT)}
|
11
11
|
add_period(1987,9) {TimezonePeriod.new(559717200,578469600,-21600,0,:CST)}
|
12
12
|
add_period(1988,5) {TimezonePeriod.new(578469600,591166800,-21600,3600,:CDT)}
|
13
|
-
add_period(1988,9) {TimezonePeriod.new(591166800,
|
13
|
+
add_period(1988,9) {TimezonePeriod.new(591166800,1146981600,-21600,0,:CST)}
|
14
|
+
add_period(2006,5) {TimezonePeriod.new(1146981600,1159074000,-21600,3600,:CDT)}
|
15
|
+
add_period(2006,9) {TimezonePeriod.new(1159074000,nil,-21600,0,:CST)}
|
14
16
|
end
|
15
17
|
end
|
16
18
|
end
|