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.
- plantstar_shared/syscon_json.py +6 -5
- {plantstar_shared-2.0.3.0.2.18.dist-info → plantstar_shared-2.0.3.0.2.19.dist-info}/METADATA +1 -1
- {plantstar_shared-2.0.3.0.2.18.dist-info → plantstar_shared-2.0.3.0.2.19.dist-info}/RECORD +5 -5
- {plantstar_shared-2.0.3.0.2.18.dist-info → plantstar_shared-2.0.3.0.2.19.dist-info}/WHEEL +0 -0
- {plantstar_shared-2.0.3.0.2.18.dist-info → plantstar_shared-2.0.3.0.2.19.dist-info}/top_level.txt +0 -0
plantstar_shared/syscon_json.py
CHANGED
@@ -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"] =
|
92
|
+
dictionary["tzinfo"] = pytz.UTC
|
93
93
|
else:
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
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)
|
@@ -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=
|
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.
|
19
|
-
plantstar_shared-2.0.3.0.2.
|
20
|
-
plantstar_shared-2.0.3.0.2.
|
21
|
-
plantstar_shared-2.0.3.0.2.
|
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,,
|
File without changes
|
{plantstar_shared-2.0.3.0.2.18.dist-info → plantstar_shared-2.0.3.0.2.19.dist-info}/top_level.txt
RENAMED
File without changes
|