neeto_time_zones 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52a854e7953c495b3c0d506404d1d2a7d261ca94148d54a4a40c7a243d20a033
4
- data.tar.gz: a41c0489065e0b52d326e66316eb87d03fdc34530488f513cf3272adfc71de91
3
+ metadata.gz: bde59921dfd00affe2caf7c5fda3c1aebcfc21eadd054d515f8fa4ca6a1f6277
4
+ data.tar.gz: d6a906af7d117613418837fdb86773c22b38ccf40f4b611f0ff28224a6e76355
5
5
  SHA512:
6
- metadata.gz: 7a8c02686e17ff383c48f6724d3ba611e6082d4b3ea68d027b2ffd2c97b6b695f8a5f571c6a397478260df48523afa45a9b174199b0ae8ef1c78439ee77c3a17
7
- data.tar.gz: 4f1af2a73b45a067138b33c283332ba61d3a23d630e5c9e0a77cd2ce26460f831c84b3a60fc5beba756c031a64b826333173b8e695cef437016fc9f109903fb8
6
+ metadata.gz: 941848e0073482e63bea8d58c36954b8840d6561f3aec75c7efd51b1b1f59db4cf8b61c841b5a09e4cea30105609b1fcca9e9ebecf64ac72214e9d1219959a24
7
+ data.tar.gz: d53ffbd90305a3015053993ac6e43322b08fa3782c2038a35eb47751475a604ce6e0e83ce9079ae827924967aa27f8ed518bd15c2fed94cc146c1ec1775abdc3
@@ -19,6 +19,8 @@ module NeetoTimeZones
19
19
 
20
20
  # This method sanitizes the browser timezone to the ones supported by ActiveSupport::TimeZone.
21
21
  def self.sanitize_timezone(timezone)
22
+ return nil if timezone.nil?
23
+
22
24
  Constants::TIMEZONES[timezone] || ActiveSupport::TimeZone[timezone]&.tzinfo&.name || timezone
23
25
  end
24
26
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NeetoTimeZones
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neeto_time_zones
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Calvin Chiramal