tzinfo 1.2.4 → 1.2.7
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.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES.md +75 -48
- data/LICENSE +1 -1
- data/README.md +9 -8
- data/lib/tzinfo/country_timezone.rb +14 -2
- data/lib/tzinfo/data_source.rb +1 -1
- data/lib/tzinfo/ruby_core_support.rb +24 -1
- data/lib/tzinfo/ruby_country_info.rb +6 -2
- data/lib/tzinfo/ruby_data_source.rb +24 -20
- data/lib/tzinfo/time_or_datetime.rb +12 -5
- data/lib/tzinfo/timezone.rb +10 -6
- data/lib/tzinfo/timezone_offset.rb +26 -3
- data/lib/tzinfo/timezone_period.rb +29 -5
- data/lib/tzinfo/timezone_proxy.rb +7 -1
- data/lib/tzinfo/timezone_transition.rb +12 -2
- data/lib/tzinfo/timezone_transition_definition.rb +6 -3
- data/lib/tzinfo/zoneinfo_country_info.rb +3 -1
- data/lib/tzinfo/zoneinfo_data_source.rb +8 -0
- data/lib/tzinfo/zoneinfo_timezone_info.rb +13 -7
- data/test/tc_country.rb +6 -4
- data/test/tc_country_timezone.rb +12 -0
- data/test/tc_ruby_country_info.rb +30 -0
- data/test/tc_ruby_data_source.rb +26 -2
- data/test/tc_time_or_datetime.rb +27 -6
- data/test/tc_timezone.rb +13 -2
- data/test/tc_timezone_period.rb +7 -0
- data/test/tc_timezone_proxy.rb +9 -0
- data/test/tc_timezone_transition.rb +14 -0
- data/test/tc_timezone_transition_definition.rb +11 -0
- data/test/tc_transition_data_timezone_info.rb +11 -1
- data/test/tc_zoneinfo_country_info.rb +14 -0
- data/test/tc_zoneinfo_data_source.rb +11 -2
- data/test/tc_zoneinfo_timezone_info.rb +108 -0
- data/test/test_utils.rb +63 -5
- data/test/ts_all_zoneinfo.rb +3 -1
- data/tzinfo.gemspec +2 -2
- metadata +22 -24
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c5b964ab83943597cb8ce6f141378398fe1bc4fe4b767dd9434f04030332b008
|
4
|
+
data.tar.gz: bcdda83a2bfc8e90d0f62a8ddab56f6de246c2c44b64cc00347838f64fc28a87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7921a1c86b6307ee7b554edc6de33d2ed07ca8660c804f3ca78099485a72e26bcd23af498a955dfd7dfa5efb0c2f95e6adbdadbd0d60ef492732f1fdfd79f0d9
|
7
|
+
data.tar.gz: a0b59904238b08bbebc38a359db873dfadc0a98ef7a2fb6241f91219c642432dc8ae643ff0cf844d16bae0ef61173bac16c5f69863cde60fe504105d4240f48f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
+
Version 1.2.7 - 2-Apr-2020
|
2
|
+
--------------------------
|
3
|
+
|
4
|
+
* Fixed 'wrong number of arguments' errors when running on JRuby 9.0. #114.
|
5
|
+
* Fixed warnings when running on Ruby 2.8. #112.
|
6
|
+
|
7
|
+
|
8
|
+
Version 1.2.6 - 24-Dec-2019
|
9
|
+
---------------------------
|
10
|
+
|
11
|
+
* Timezone#strftime('%s', time) will now return the correct number of seconds
|
12
|
+
since the epoch. #91.
|
13
|
+
* Removed the unused TZInfo::RubyDataSource::REQUIRE_PATH constant.
|
14
|
+
* Fixed "SecurityError: Insecure operation - require" exceptions when loading
|
15
|
+
data with recent Ruby releases in safe mode.
|
16
|
+
* Fixed warnings when running on Ruby 2.7. #106 and #111.
|
17
|
+
|
18
|
+
|
19
|
+
Version 1.2.5 - 4-Feb-2018
|
20
|
+
--------------------------
|
21
|
+
|
22
|
+
* Support recursively (deep) freezing Country and Timezone instances. #80.
|
23
|
+
* Allow negative daylight savings time offsets to be derived when reading from
|
24
|
+
zoneinfo files. The utc_offset and std_offset are now derived correctly for
|
25
|
+
Europe/Dublin in the 2018a and 2018b releases of the Time Zone Database.
|
26
|
+
|
27
|
+
|
1
28
|
Version 1.2.4 - 26-Oct-2017
|
2
29
|
---------------------------
|
3
30
|
|
@@ -182,70 +209,70 @@ Version 0.3.45 (tzdata v2015g) - 3-Oct-2015
|
|
182
209
|
-------------------------------------------
|
183
210
|
|
184
211
|
* Updated to tzdata version 2015g
|
185
|
-
(
|
212
|
+
(https://mm.icann.org/pipermail/tz-announce/2015-October/000034.html).
|
186
213
|
|
187
214
|
|
188
215
|
Version 0.3.44 (tzdata v2015d) - 24-Apr-2015
|
189
216
|
--------------------------------------------
|
190
217
|
|
191
218
|
* Updated to tzdata version 2015d
|
192
|
-
(
|
219
|
+
(https://mm.icann.org/pipermail/tz-announce/2015-April/000031.html).
|
193
220
|
|
194
221
|
|
195
222
|
Version 0.3.43 (tzdata v2015a) - 31-Jan-2015
|
196
223
|
--------------------------------------------
|
197
224
|
|
198
225
|
* Updated to tzdata version 2015a
|
199
|
-
(
|
226
|
+
(https://mm.icann.org/pipermail/tz-announce/2015-January/000028.html).
|
200
227
|
|
201
228
|
|
202
229
|
Version 0.3.42 (tzdata v2014i) - 23-Oct-2014
|
203
230
|
--------------------------------------------
|
204
231
|
|
205
232
|
* Updated to tzdata version 2014i
|
206
|
-
(
|
233
|
+
(https://mm.icann.org/pipermail/tz-announce/2014-October/000026.html).
|
207
234
|
|
208
235
|
|
209
236
|
Version 0.3.41 (tzdata v2014f) - 8-Aug-2014
|
210
237
|
-------------------------------------------
|
211
238
|
|
212
239
|
* Updated to tzdata version 2014f
|
213
|
-
(
|
240
|
+
(https://mm.icann.org/pipermail/tz-announce/2014-August/000023.html).
|
214
241
|
|
215
242
|
|
216
243
|
Version 0.3.40 (tzdata v2014e) - 10-Jul-2014
|
217
244
|
--------------------------------------------
|
218
245
|
|
219
246
|
* Updated to tzdata version 2014e
|
220
|
-
(
|
247
|
+
(https://mm.icann.org/pipermail/tz-announce/2014-June/000022.html).
|
221
248
|
|
222
249
|
|
223
250
|
Version 0.3.39 (tzdata v2014a) - 9-Mar-2014
|
224
251
|
-------------------------------------------
|
225
252
|
|
226
253
|
* Updated to tzdata version 2014a
|
227
|
-
(
|
254
|
+
(https://mm.icann.org/pipermail/tz-announce/2014-March/000018.html).
|
228
255
|
|
229
256
|
|
230
257
|
Version 0.3.38 (tzdata v2013g) - 8-Oct-2013
|
231
258
|
-------------------------------------------
|
232
259
|
|
233
260
|
* Updated to tzdata version 2013g
|
234
|
-
(
|
261
|
+
(https://mm.icann.org/pipermail/tz-announce/2013-October/000015.html).
|
235
262
|
|
236
263
|
|
237
264
|
Version 0.3.37 (tzdata v2013b) - 11-Mar-2013
|
238
265
|
--------------------------------------------
|
239
266
|
|
240
267
|
* Updated to tzdata version 2013b
|
241
|
-
(
|
268
|
+
(https://mm.icann.org/pipermail/tz-announce/2013-March/000010.html).
|
242
269
|
|
243
270
|
|
244
271
|
Version 0.3.36 (tzdata v2013a) - 3-Mar-2013
|
245
272
|
-------------------------------------------
|
246
273
|
|
247
274
|
* Updated to tzdata version 2013a
|
248
|
-
(
|
275
|
+
(https://mm.icann.org/pipermail/tz-announce/2013-March/000009.html).
|
249
276
|
* Fix TimezoneTransitionInfo#eql? incorrectly returning false when running on
|
250
277
|
Ruby 2.0.
|
251
278
|
* Change eql? and == implementations to test the class of the passed in object
|
@@ -256,49 +283,49 @@ Version 0.3.35 (tzdata v2012i) - 4-Nov-2012
|
|
256
283
|
-------------------------------------------
|
257
284
|
|
258
285
|
* Updated to tzdata version 2012i
|
259
|
-
(
|
286
|
+
(https://mm.icann.org/pipermail/tz-announce/2012-November/000007.html).
|
260
287
|
|
261
288
|
|
262
289
|
Version 0.3.34 (tzdata v2012h) - 27-Oct-2012
|
263
290
|
--------------------------------------------
|
264
291
|
|
265
292
|
* Updated to tzdata version 2012h
|
266
|
-
(
|
293
|
+
(https://mm.icann.org/pipermail/tz-announce/2012-October/000006.html).
|
267
294
|
|
268
295
|
|
269
296
|
Version 0.3.33 (tzdata v2012c) - 8-Apr-2012
|
270
297
|
-------------------------------------------
|
271
298
|
|
272
299
|
* Updated to tzdata version 2012c
|
273
|
-
(
|
300
|
+
(https://mm.icann.org/pipermail/tz/2012-April/017627.html).
|
274
301
|
|
275
302
|
|
276
303
|
Version 0.3.32 (tzdata v2012b) - 4-Mar-2012
|
277
304
|
-------------------------------------------
|
278
305
|
|
279
306
|
* Updated to tzdata version 2012b
|
280
|
-
(
|
307
|
+
(https://mm.icann.org/pipermail/tz/2012-March/017524.html).
|
281
308
|
|
282
309
|
|
283
310
|
Version 0.3.31 (tzdata v2011n) - 6-Nov-2011
|
284
311
|
-------------------------------------------
|
285
312
|
|
286
313
|
* Updated to tzdata version 2011n
|
287
|
-
(
|
314
|
+
(https://mm.icann.org/pipermail/tz/2011-October/017201.html).
|
288
315
|
|
289
316
|
|
290
317
|
Version 0.3.30 (tzdata v2011k) - 29-Sep-2011
|
291
318
|
--------------------------------------------
|
292
319
|
|
293
320
|
* Updated to tzdata version 2011k
|
294
|
-
(
|
321
|
+
(https://mm.icann.org/pipermail/tz/2011-September/008889.html).
|
295
322
|
|
296
323
|
|
297
324
|
Version 0.3.29 (tzdata v2011h) - 27-Jun-2011
|
298
325
|
--------------------------------------------
|
299
326
|
|
300
327
|
* Updated to tzdata version 2011h
|
301
|
-
(
|
328
|
+
(https://mm.icann.org/pipermail/tz/2011-June/008576.html).
|
302
329
|
* Allow the default value of the local_to_utc and period_for_local dst
|
303
330
|
parameter to be specified globally with a Timezone.default_dst attribute.
|
304
331
|
Thanks to Kurt Werle for the suggestion and patch.
|
@@ -316,35 +343,35 @@ Version 0.3.27 (tzdata v2011g) - 26-Apr-2011
|
|
316
343
|
--------------------------------------------
|
317
344
|
|
318
345
|
* Updated to tzdata version 2011g
|
319
|
-
(
|
346
|
+
(https://mm.icann.org/pipermail/tz/2011-April/016875.html).
|
320
347
|
|
321
348
|
|
322
349
|
Version 0.3.26 (tzdata v2011e) - 2-Apr-2011
|
323
350
|
-------------------------------------------
|
324
351
|
|
325
352
|
* Updated to tzdata version 2011e
|
326
|
-
(
|
353
|
+
(https://mm.icann.org/pipermail/tz/2011-April/016809.html).
|
327
354
|
|
328
355
|
|
329
356
|
Version 0.3.25 (tzdata v2011d) - 14-Mar-2011
|
330
357
|
--------------------------------------------
|
331
358
|
|
332
359
|
* Updated to tzdata version 2011d
|
333
|
-
(
|
360
|
+
(https://mm.icann.org/pipermail/tz/2011-March/016746.html).
|
334
361
|
|
335
362
|
|
336
363
|
Version 0.3.24 (tzdata v2010o) - 15-Jan-2011
|
337
364
|
--------------------------------------------
|
338
365
|
|
339
366
|
* Updated to tzdata version 2010o
|
340
|
-
(
|
367
|
+
(https://mm.icann.org/pipermail/tz/2010-November/016517.html).
|
341
368
|
|
342
369
|
|
343
370
|
Version 0.3.23 (tzdata v2010l) - 19-Aug-2010
|
344
371
|
--------------------------------------------
|
345
372
|
|
346
373
|
* Updated to tzdata version 2010l
|
347
|
-
(
|
374
|
+
(https://mm.icann.org/pipermail/tz/2010-August/016360.html).
|
348
375
|
|
349
376
|
|
350
377
|
Version 0.3.22 (tzdata v2010j) - 29-May-2010
|
@@ -357,7 +384,7 @@ Version 0.3.21 (tzdata v2010j) - 28-May-2010
|
|
357
384
|
--------------------------------------------
|
358
385
|
|
359
386
|
* Updated to tzdata version 2010j
|
360
|
-
(
|
387
|
+
(https://mm.icann.org/pipermail/tz/2010-May/016211.html).
|
361
388
|
* Change invalid timezone check to exclude characters not used in timezone
|
362
389
|
identifiers and avoid 'character class has duplicated range' warnings with
|
363
390
|
Ruby 1.9.2.
|
@@ -375,28 +402,28 @@ Version 0.3.20 (tzdata v2010i) - 19-Apr-2010
|
|
375
402
|
--------------------------------------------
|
376
403
|
|
377
404
|
* Updated to tzdata version 2010i
|
378
|
-
(
|
405
|
+
(https://mm.icann.org/pipermail/tz/2010-April/016184.html).
|
379
406
|
|
380
407
|
|
381
408
|
Version 0.3.19 (tzdata v2010h) - 5-Apr-2010
|
382
409
|
-------------------------------------------
|
383
410
|
|
384
411
|
* Updated to tzdata version 2010h
|
385
|
-
(
|
412
|
+
(https://mm.icann.org/pipermail/tz/2010-April/016161.html).
|
386
413
|
|
387
414
|
|
388
415
|
Version 0.3.18 (tzdata v2010g) - 29-Mar-2010
|
389
416
|
--------------------------------------------
|
390
417
|
|
391
418
|
* Updated to tzdata version 2010g
|
392
|
-
(
|
419
|
+
(https://mm.icann.org/pipermail/tz/2010-March/016140.html).
|
393
420
|
|
394
421
|
|
395
422
|
Version 0.3.17 (tzdata v2010e) - 8-Mar-2010
|
396
423
|
-------------------------------------------
|
397
424
|
|
398
425
|
* Updated to tzdata version 2010e
|
399
|
-
(
|
426
|
+
(https://mm.icann.org/pipermail/tz/2010-March/016088.html).
|
400
427
|
|
401
428
|
|
402
429
|
Version 0.3.16 (tzdata v2009u) - 5-Jan-2010
|
@@ -405,14 +432,14 @@ Version 0.3.16 (tzdata v2009u) - 5-Jan-2010
|
|
405
432
|
* Support the use of '-' to denote '0' as an offset in the tz data files.
|
406
433
|
Used for the first time in the SAVE field in tzdata v2009u.
|
407
434
|
* Updated to tzdata version 2009u
|
408
|
-
(
|
435
|
+
(https://mm.icann.org/pipermail/tz/2009-December/016001.html).
|
409
436
|
|
410
437
|
|
411
438
|
Version 0.3.15 (tzdata v2009p) - 26-Oct-2009
|
412
439
|
--------------------------------------------
|
413
440
|
|
414
441
|
* Updated to tzdata version 2009p
|
415
|
-
(
|
442
|
+
(https://mm.icann.org/pipermail/tz/2009-October/015889.html).
|
416
443
|
* Added a description to the gem spec.
|
417
444
|
* List test files in test_files instead of files in the gem spec.
|
418
445
|
|
@@ -421,7 +448,7 @@ Version 0.3.14 (tzdata v2009l) - 19-Aug-2009
|
|
421
448
|
--------------------------------------------
|
422
449
|
|
423
450
|
* Updated to tzdata version 2009l
|
424
|
-
(
|
451
|
+
(https://mm.icann.org/pipermail/tz/2009-August/015729.html).
|
425
452
|
* Include current directory in load path to allow running tests on
|
426
453
|
Ruby 1.9.2, which doesn't include it by default any more.
|
427
454
|
|
@@ -430,7 +457,7 @@ Version 0.3.13 (tzdata v2009f) - 15-Apr-2009
|
|
430
457
|
--------------------------------------------
|
431
458
|
|
432
459
|
* Updated to tzdata version 2009f
|
433
|
-
(
|
460
|
+
(https://mm.icann.org/pipermail/tz/2009-April/015544.html).
|
434
461
|
* Untaint the timezone module filename after validation to allow use
|
435
462
|
with $SAFE == 1 (e.g. under mod_ruby). Thanks to Dmitry Borodaenko for
|
436
463
|
the suggestion. Closes #25349.
|
@@ -440,14 +467,14 @@ Version 0.3.12 (tzdata v2008i) - 12-Nov-2008
|
|
440
467
|
--------------------------------------------
|
441
468
|
|
442
469
|
* Updated to tzdata version 2008i
|
443
|
-
(
|
470
|
+
(https://mm.icann.org/pipermail/tz/2008-October/015260.html).
|
444
471
|
|
445
472
|
|
446
473
|
Version 0.3.11 (tzdata v2008g) - 7-Oct-2008
|
447
474
|
-------------------------------------------
|
448
475
|
|
449
476
|
* Updated to tzdata version 2008g
|
450
|
-
(
|
477
|
+
(https://mm.icann.org/pipermail/tz/2008-October/015139.html).
|
451
478
|
* Support Ruby 1.9.0-5. Rational.new! has now been removed in Ruby 1.9.
|
452
479
|
Only use Rational.new! if it is available (it is preferable in Ruby 1.8
|
453
480
|
for performance reasons). Thanks to Jeremy Kemper and Pratik Naik for
|
@@ -460,14 +487,14 @@ Version 0.3.10 (tzdata v2008f) - 16-Sep-2008
|
|
460
487
|
--------------------------------------------
|
461
488
|
|
462
489
|
* Updated to tzdata version 2008f
|
463
|
-
(
|
490
|
+
(https://mm.icann.org/pipermail/tz/2008-September/015090.html).
|
464
491
|
|
465
492
|
|
466
493
|
Version 0.3.9 (tzdata v2008c) - 27-May-2008
|
467
494
|
-------------------------------------------
|
468
495
|
|
469
496
|
* Updated to tzdata version 2008c
|
470
|
-
(
|
497
|
+
(https://mm.icann.org/pipermail/tz/2008-May/014956.html).
|
471
498
|
* Support loading timezone data in the latest trunk versions of Ruby 1.9.
|
472
499
|
Rational.new! is now private, so call it using Rational.send :new! instead.
|
473
500
|
Thanks to Jeremy Kemper and Pratik Naik for spotting this. Closes #19184.
|
@@ -479,7 +506,7 @@ Version 0.3.8 (tzdata v2008b) - 24-Mar-2008
|
|
479
506
|
-------------------------------------------
|
480
507
|
|
481
508
|
* Updated to tzdata version 2008b
|
482
|
-
(
|
509
|
+
(https://mm.icann.org/pipermail/tz/2008-March/014910.html).
|
483
510
|
* Support loading timezone data in Ruby 1.9.0. Use DateTime.new! if it is
|
484
511
|
available instead of DateTime.new0 when constructing transition times.
|
485
512
|
DateTime.new! was added in Ruby 1.8.6. DateTime.new0 was removed in
|
@@ -492,14 +519,14 @@ Version 0.3.7 (tzdata v2008a) - 10-Mar-2008
|
|
492
519
|
-------------------------------------------
|
493
520
|
|
494
521
|
* Updated to tzdata version 2008a
|
495
|
-
(
|
522
|
+
(https://mm.icann.org/pipermail/tz/2008-March/014851.html).
|
496
523
|
|
497
524
|
|
498
525
|
Version 0.3.6 (tzdata v2007k) - 1-Jan-2008
|
499
526
|
------------------------------------------
|
500
527
|
|
501
528
|
* Updated to tzdata version 2007k
|
502
|
-
(
|
529
|
+
(https://mm.icann.org/pipermail/tz/2007-December/014765.html).
|
503
530
|
* Removed deprecated RubyGems autorequire option.
|
504
531
|
|
505
532
|
|
@@ -507,28 +534,28 @@ Version 0.3.5 (tzdata v2007h) - 1-Oct-2007
|
|
507
534
|
------------------------------------------
|
508
535
|
|
509
536
|
* Updated to tzdata version 2007h
|
510
|
-
(
|
537
|
+
(https://mm.icann.org/pipermail/tz/2007-October/014585.html).
|
511
538
|
|
512
539
|
|
513
540
|
Version 0.3.4 (tzdata v2007g) - 21-Aug-2007
|
514
541
|
-------------------------------------------
|
515
542
|
|
516
543
|
* Updated to tzdata version 2007g
|
517
|
-
(
|
544
|
+
(https://mm.icann.org/pipermail/tz/2007-August/014499.html).
|
518
545
|
|
519
546
|
|
520
547
|
Version 0.3.3 (tzdata v2006p) - 27-Nov-2006
|
521
548
|
-------------------------------------------
|
522
549
|
|
523
550
|
* Updated to tzdata version 2006p
|
524
|
-
(
|
551
|
+
(https://mm.icann.org/pipermail/tz/2006-November/013999.html).
|
525
552
|
|
526
553
|
|
527
554
|
Version 0.3.2 (tzdata v2006n) - 11-Oct-2006
|
528
555
|
-------------------------------------------
|
529
556
|
|
530
557
|
* Updated to tzdata version 2006n
|
531
|
-
(
|
558
|
+
(https://mm.icann.org/pipermail/tz/2006-October/013911.html). Note that this release of
|
532
559
|
tzdata removes the country Serbia and Montenegro (CS) and replaces it with
|
533
560
|
separate Serbia (RS) and Montenegro (ME) entries.
|
534
561
|
|
@@ -539,7 +566,7 @@ Version 0.3.1 (tzdata v2006j) - 21-Aug-2006
|
|
539
566
|
* Remove colon from case statements to avoid warning in Ruby 1.8.5. #5198.
|
540
567
|
* Use temporary variable to avoid dynamic string warning from rdoc.
|
541
568
|
* Updated to tzdata version 2006j
|
542
|
-
(
|
569
|
+
(https://mm.icann.org/pipermail/tz/2006-August/013767.html).
|
543
570
|
|
544
571
|
|
545
572
|
Version 0.3.0 (tzdata v2006g) - 17-Jul-2006
|
@@ -605,7 +632,7 @@ Version 0.2.2 (tzdata v2006g) - 17-May-2006
|
|
605
632
|
zone identifier.
|
606
633
|
* The zdumptestall utility now exits if not supplied with enough parameters.
|
607
634
|
* Updated to tzdata version 2006g
|
608
|
-
(
|
635
|
+
(https://mm.icann.org/pipermail/tz/2006-May/013590.html).
|
609
636
|
|
610
637
|
|
611
638
|
Version 0.2.1 (tzdata v2006d) - 17-Apr-2006
|
@@ -621,7 +648,7 @@ Version 0.2.1 (tzdata v2006d) - 17-Apr-2006
|
|
621
648
|
Jamis Buck for reporting this.
|
622
649
|
* Added abbreviation as an alias for TimezonePeriod.zone_identifier.
|
623
650
|
* Updated to tzdata version 2006d
|
624
|
-
(
|
651
|
+
(https://mm.icann.org/pipermail/tz/2006-April/013517.html).
|
625
652
|
* Ignore any offset in DateTimes passed in (as is already done for Times).
|
626
653
|
All of the following now refer to the same UTC time (15:40 on 17 April 2006).
|
627
654
|
Previously, the DateTime in the second line would have been interpreted
|
@@ -654,7 +681,7 @@ Version 0.2.0 (tzdata v2006c) - 3-Apr-2006
|
|
654
681
|
* Omit the final transition to DST if there is a prior transition in the last
|
655
682
|
year processed to standard time.
|
656
683
|
* Updated to tzdata version 2006c
|
657
|
-
(
|
684
|
+
(https://mm.icann.org/pipermail/tz/2006-April/013500.html).
|
658
685
|
|
659
686
|
|
660
687
|
Version 0.1.2 (tzdata v2006a) - 5-Feb-2006
|
@@ -663,7 +690,7 @@ Version 0.1.2 (tzdata v2006a) - 5-Feb-2006
|
|
663
690
|
* Add lib directory to the load path when tzinfo is required. Makes it easier
|
664
691
|
to use tzinfo gem when unpacked to vendor directory in rails.
|
665
692
|
* Updated to tzdata version 2006a
|
666
|
-
(
|
693
|
+
(https://mm.icann.org/pipermail/tz/2006-January/013311.html).
|
667
694
|
* build_tz_classes rake task now handles running svn add and svn delete as new
|
668
695
|
timezones and countries are added and old ones are removed.
|
669
696
|
* Return a better error when attempting to use a Timezone instance that was
|
@@ -768,7 +795,7 @@ Version 0.0.2 (tzdata v2005m) - 13-Sep-2005
|
|
768
795
|
|
769
796
|
Thanks to Scott Barron of Lunchbox Software for the suggestions in his
|
770
797
|
article about using TZInfo with Rails
|
771
|
-
(http://lunchroom.lunchboxsoftware.com/pages/tzinfo_rails)
|
798
|
+
(https://web.archive.org/web/20060425190845/http://lunchroom.lunchboxsoftware.com/pages/tzinfo_rails)
|
772
799
|
|
773
800
|
|
774
801
|
Version 0.0.1 (tzdata v2005m) - 29-Aug-2005
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
TZInfo - Ruby Timezone Library
|
2
2
|
==============================
|
3
3
|
|
4
|
-
[![
|
4
|
+
[![RubyGems](https://img.shields.io/gem/v/tzinfo)](https://rubygems.org/gems/tzinfo) [![Travis CI Build](https://img.shields.io/travis/tzinfo/tzinfo/1.2?logo=travis)](https://travis-ci.org/tzinfo/tzinfo) [![AppVeyor Build](https://img.shields.io/appveyor/build/philr/tzinfo/1.2?logo=appveyor)](https://ci.appveyor.com/project/philr/tzinfo/branch/1.2)
|
5
5
|
|
6
|
-
[TZInfo](
|
6
|
+
[TZInfo](https://tzinfo.github.io) provides daylight savings aware
|
7
7
|
transformations between times in different timezones.
|
8
8
|
|
9
9
|
|
@@ -13,10 +13,10 @@ Data Sources
|
|
13
13
|
TZInfo requires a source of timezone data. There are two built-in options:
|
14
14
|
|
15
15
|
1. The TZInfo::Data library (the tzinfo-data gem). TZInfo::Data contains a set
|
16
|
-
of Ruby modules that are generated from the [IANA Time Zone Database](
|
16
|
+
of Ruby modules that are generated from the [IANA Time Zone Database](https://www.iana.org/time-zones).
|
17
17
|
2. A zoneinfo directory. Most Unix-like systems include a zoneinfo directory
|
18
18
|
containing timezone definitions. These are also generated from the
|
19
|
-
[IANA Time Zone Database](
|
19
|
+
[IANA Time Zone Database](https://www.iana.org/time-zones).
|
20
20
|
|
21
21
|
By default, TZInfo::Data will be used. If TZInfo::Data is not available (i.e.
|
22
22
|
if `require 'tzinfo/data'` fails), then TZInfo will search for a zoneinfo
|
@@ -25,7 +25,7 @@ directory instead (using the search path specified by
|
|
25
25
|
|
26
26
|
If no data source can be found, a `TZInfo::DataSourceNotFound` exception will be
|
27
27
|
raised when TZInfo is used. Further information is available
|
28
|
-
[in the wiki](
|
28
|
+
[in the wiki](https://tzinfo.github.io/datasourcenotfound) to help with
|
29
29
|
resolving `TZInfo::DataSourceNotFound` errors.
|
30
30
|
|
31
31
|
The default data source selection can be overridden using
|
@@ -60,8 +60,9 @@ of `TZInfo::Timezone`) and convert a time in UTC to local New York time:
|
|
60
60
|
local = tz.utc_to_local(Time.utc(2005,8,29,15,35,0))
|
61
61
|
|
62
62
|
Note that the local Time returned will have a UTC timezone (`local.zone` will
|
63
|
-
return `"UTC"`). This is because the
|
64
|
-
UTC and the
|
63
|
+
return `"UTC"`). This is because the Time class in older (but still supported by
|
64
|
+
TZInfo) versions of Ruby can only handle two timezones: UTC and the system local
|
65
|
+
timezone.
|
65
66
|
|
66
67
|
To convert from a local time to UTC, the `local_to_utc` method can be used as
|
67
68
|
follows:
|
@@ -129,7 +130,7 @@ thread boundaries.
|
|
129
130
|
Documentation
|
130
131
|
-------------
|
131
132
|
|
132
|
-
API documentation for TZInfo is available on [RubyDoc.info](
|
133
|
+
API documentation for TZInfo is available on [RubyDoc.info](https://rubydoc.info/gems/tzinfo/frames).
|
133
134
|
|
134
135
|
|
135
136
|
License
|