Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use isoformat when producing json output in cloud-show-backup #1028

Closed
wants to merge 2 commits into from

Conversation

gcalacoci
Copy link
Contributor

This is an hotfix for support ticket 40034

This patch modifies the to_json() method of the BackupInfo class substituting the ctime method from the datetime class with the isoformat method, when printing begin_time and end_time in json format.

The new format preserves all the relevant informations of the datetime object, including the timezone.

References: 40034

This is an hotfix for support ticket 40034

This patch modifies the `to_json()` method of the BackupInfo class
substituting the `ctime` method from the datetime class with the
`isoformat` method, when printing `begin_time` and `end_time`
in json format.

The new format preserves all the relevant informations of the datetime
object, including the timezone.

References: 40034

Signed-off-by: Giulio Calacoci <[email protected]>
@gcalacoci gcalacoci requested a review from a team as a code owner October 28, 2024 12:54
This is part of an hotfix for support ticket 40034

References: 40034

Signed-off-by: Giulio Calacoci <[email protected]>
@gcalacoci
Copy link
Contributor Author

duplicate of #1029

@gcalacoci gcalacoci closed this Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant