Skip to content

Commit b3dd5a9

Browse files
authored
Replaced all the year 9000 with year 3001 for max_time.
datetime class return os Error for timestamp() method in Window OS.
1 parent 96ef1fb commit b3dd5a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

streaming_data_types/action_response_answ.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def deserialise_answ(buffer: Union[bytearray, bytes]):
6464
check_schema_identifier(buffer, FILE_IDENTIFIER)
6565
answ_message = ActionResponse.ActionResponse.GetRootAsActionResponse(buffer, 0)
6666
max_time = datetime(
67-
year=9000, month=1, day=1, hour=0, minute=0, second=0
67+
year=3001, month=1, day=1, hour=0, minute=0, second=0
6868
).timestamp()
6969
used_timestamp = answ_message.StopTime() / 1000
7070
if used_timestamp > max_time:

streaming_data_types/sample_environment_senv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def deserialise_senv(buffer: Union[bytearray, bytes]) -> Response:
104104
SE_data = SampleEnvironmentData.GetRootAsSampleEnvironmentData(buffer, 0)
105105

106106
max_time = datetime(
107-
year=9000, month=1, day=1, hour=0, minute=0, second=0
107+
year=3001, month=1, day=1, hour=0, minute=0, second=0
108108
).timestamp()
109109
used_timestamp = SE_data.PacketTimestamp() / 1e9
110110
if used_timestamp > max_time:

0 commit comments

Comments
 (0)