Change CSC time methods #355

Merged
d.zayakin merged 1 commit from d.zayakin/frostfs-testlib:csc-time-methods into master 2025-02-05 11:47:09 +00:00
Member

Signed-off-by: Dmitriy Zayakin d.zayakin@yadro.com

Signed-off-by: Dmitriy Zayakin <d.zayakin@yadro.com>
d.zayakin added 1 commit 2025-02-04 06:57:54 +00:00
[#355] Change CSC time methods
All checks were successful
DCO action / DCO (pull_request) Successful in 28s
b41e197ec2
Signed-off-by: Dmitriy Zayakin <d.zayakin@yadro.com>
requested review from qa-committers 2025-02-04 06:57:55 +00:00
Kiriruso reviewed 2025-02-04 12:30:36 +00:00
@ -392,2 +391,3 @@
def get_node_date(self, node: ClusterNode) -> datetime.datetime:
shell = node.host.get_shell()
return datetime.datetime.strptime(shell.exec("hwclock -r").stdout.strip(), "%Y-%m-%d %H:%M:%S.%f%z")
return datetime.datetime.strptime(shell.exec('date +"%Y-%m-%d %H:%M:%S"').stdout.strip(), "%Y-%m-%d %H:%M:%S")
Contributor

Duplicating datetime.datetime looks bad, what about importing datetime.datetime and datetime.timezone separately?

-> from datetime import datetime, timezone

Duplicating `datetime.datetime` looks bad, what about importing `datetime.datetime` and `datetime.timezone` separately? -> `from datetime import datetime, timezone`
Author
Member

Done

Done
d.zayakin marked this conversation as resolved
d.zayakin force-pushed csc-time-methods from b41e197ec2 to 2ffb80bbf4 2025-02-04 13:39:55 +00:00 Compare
anurindm approved these changes 2025-02-05 11:34:15 +00:00
abereziny approved these changes 2025-02-05 11:45:38 +00:00
d.zayakin merged commit e9bc36b3d3 into master 2025-02-05 11:47:09 +00:00
d.zayakin referenced this pull request from a commit 2025-02-05 11:47:09 +00:00
d.zayakin deleted branch csc-time-methods 2025-02-05 11:47:13 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-testlib#355
No description provided.