-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Convert ISO to UTC for Date/Time in workflow reports #16758
Conversation
const iso = new Date(invocation && invocation["create_time"]); | ||
return iso.toUTCString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, but does that need to be fixed in the PDF as well ?
Can you please run |
Co-authored-by: Marius van den Beek <[email protected]>
@@ -280,7 +280,8 @@ def test_generate_invocation_time(self): | |||
invocation = self._new_invocation() | |||
self.app.workflow_manager.get_invocation.side_effect = [invocation] # type: ignore[attr-defined,union-attr] | |||
result = self._to_basic(example) | |||
assert f"\n {invocation.create_time.isoformat()}" in result | |||
expectedtime = invocation.create_time.strftime("%m/%d/%Y, %H:%M:%S") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use the iso date format ( [YYYY]-[MM]-[DD]) ?
changing format of string time to more closely match iso format
changing format of string time to more closely match iso format
Part of #16556
Instead of printing out ISO date time, dislpaying time format in UTC.
How to test the changes?
(Select all options that apply)
License