plantstar-shared 2.0.3.0.2.19__py3-none-any.whl → 2.0.3.0.2.20__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 +3 -1
- {plantstar_shared-2.0.3.0.2.19.dist-info → plantstar_shared-2.0.3.0.2.20.dist-info}/METADATA +1 -1
- {plantstar_shared-2.0.3.0.2.19.dist-info → plantstar_shared-2.0.3.0.2.20.dist-info}/RECORD +5 -5
- {plantstar_shared-2.0.3.0.2.19.dist-info → plantstar_shared-2.0.3.0.2.20.dist-info}/WHEEL +0 -0
- {plantstar_shared-2.0.3.0.2.19.dist-info → plantstar_shared-2.0.3.0.2.20.dist-info}/top_level.txt +0 -0
plantstar_shared/syscon_json.py
CHANGED
@@ -89,7 +89,7 @@ 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"] = "UTC"
|
93
93
|
else:
|
94
94
|
if type_name == "datetime":
|
95
95
|
tzinfo_to_localize = pytz.timezone(dictionary["tzinfo"])
|
@@ -97,6 +97,8 @@ class SysconDecoder(json.JSONDecoder):
|
|
97
97
|
localized_datetime = tzinfo_to_localize.localize(datetime.datetime(**dictionary))
|
98
98
|
return localized_datetime
|
99
99
|
|
100
|
+
dictionary["tzinfo"] = pytz.timezone(dictionary["tzinfo"])
|
101
|
+
|
100
102
|
if type_name == "datetime":
|
101
103
|
return datetime.datetime(**dictionary)
|
102
104
|
elif type_name == "date":
|
@@ -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=WLfn1sftcNe71Qz2lczr9REx6lAl7mDJCz9GBhEg3Ek,4545
|
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.20.dist-info/METADATA,sha256=1N98YKlQDs-ilL2awae4UelsrfB5zoTuKr73wZ_1vVA,659
|
19
|
+
plantstar_shared-2.0.3.0.2.20.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
20
|
+
plantstar_shared-2.0.3.0.2.20.dist-info/top_level.txt,sha256=9ZTCr_aP1GqYGt7EVmlSIUF72bdMZErapyhbik-MWVQ,17
|
21
|
+
plantstar_shared-2.0.3.0.2.20.dist-info/RECORD,,
|
File without changes
|
{plantstar_shared-2.0.3.0.2.19.dist-info → plantstar_shared-2.0.3.0.2.20.dist-info}/top_level.txt
RENAMED
File without changes
|