plantstar-shared 2.0.3.0.2.18__py3-none-any.whl → 2.0.3.0.2.19__py3-none-any.whl

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.
@@ -89,12 +89,13 @@ class SysconDecoder(json.JSONDecoder):
89
89
  if "tzinfo" in dictionary:
90
90
  # This is here for a weird bug that was happening
91
91
  if dictionary["tzinfo"] is None or dictionary["tzinfo"] in ["None", "tzlocal()", "tzutc()"]:
92
- dictionary["tzinfo"] = "UTC"
92
+ dictionary["tzinfo"] = pytz.UTC
93
93
  else:
94
- tzinfo_to_localize = pytz.timezone(dictionary["tzinfo"])
95
- dictionary.pop('tzinfo')
96
- localized_datetime = tzinfo_to_localize.localize(datetime.datetime(**dictionary))
97
- return localized_datetime
94
+ if type_name == "datetime":
95
+ tzinfo_to_localize = pytz.timezone(dictionary["tzinfo"])
96
+ dictionary.pop('tzinfo')
97
+ localized_datetime = tzinfo_to_localize.localize(datetime.datetime(**dictionary))
98
+ return localized_datetime
98
99
 
99
100
  if type_name == "datetime":
100
101
  return datetime.datetime(**dictionary)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plantstar-shared
3
- Version: 2.0.3.0.2.18
3
+ Version: 2.0.3.0.2.19
4
4
  Summary: Shared code used in plantstar_apu and plantstar_dcm
5
5
  Home-page: https://github.com/SYSCON-International/plantstar_shared
6
6
  Author: SYSCON International
@@ -13,9 +13,9 @@ plantstar_shared/global_definitions.py,sha256=mj59nU21DYza4XgZQxLX2lTvJYooN_-ZFr
13
13
  plantstar_shared/is_valid_signed_string.py,sha256=5ZiEsPRz30J8yxN4A1dHq-hlz7VI9ru_fRH4A5JjuGQ,276
14
14
  plantstar_shared/obtain_raw_data_processor_function_for_action_name.py,sha256=DYo307PraRRD8zGiSO6Fn03bZ4X9aDOYV9rwaRm8mXM,1134
15
15
  plantstar_shared/syscon_image_field.py,sha256=GlTTudqFT5EsWM5sPRO0p5SDascX7gI1BEOeF1OG7Tw,441
16
- plantstar_shared/syscon_json.py,sha256=CnsWfpyFuFx2OLVLNschvGI0fFGDXzb_fq-K1zlODRM,4413
16
+ plantstar_shared/syscon_json.py,sha256=rx3NTYgeFx30rCyJbdH07wGctgkiz8hTFvYeLRwWlOk,4476
17
17
  plantstar_shared/tcp_socket_utils.py,sha256=Z8KY4Sc_SX4XDunPxeAk2IMfYZi5HenGE8SBU8U-KTk,6364
18
- plantstar_shared-2.0.3.0.2.18.dist-info/METADATA,sha256=rYZBi0sV5wu0C4Sy1VmPwA3Sz2ED6ORqL7IsvbkwjJ8,659
19
- plantstar_shared-2.0.3.0.2.18.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
20
- plantstar_shared-2.0.3.0.2.18.dist-info/top_level.txt,sha256=9ZTCr_aP1GqYGt7EVmlSIUF72bdMZErapyhbik-MWVQ,17
21
- plantstar_shared-2.0.3.0.2.18.dist-info/RECORD,,
18
+ plantstar_shared-2.0.3.0.2.19.dist-info/METADATA,sha256=28k2pdEprsNkWcMS5XOQddOlX1LuJ3cqmJe7jvsaSYI,659
19
+ plantstar_shared-2.0.3.0.2.19.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
20
+ plantstar_shared-2.0.3.0.2.19.dist-info/top_level.txt,sha256=9ZTCr_aP1GqYGt7EVmlSIUF72bdMZErapyhbik-MWVQ,17
21
+ plantstar_shared-2.0.3.0.2.19.dist-info/RECORD,,