Skip to content

Revert timezone workaround for submitted vs completed timestamps#195

Merged
batzionb merged 1 commit intoRHEcosystemAppEng:mainfrom
batzionb:revert-timezone-ui-workaround
Mar 30, 2026
Merged

Revert timezone workaround for submitted vs completed timestamps#195
batzionb merged 1 commit intoRHEcosystemAppEng:mainfrom
batzionb:revert-timezone-ui-workaround

Conversation

@batzionb
Copy link
Copy Markdown
Collaborator

@batzionb batzionb commented Mar 30, 2026

Reverts #181 / commit 0f59a42 (timezone mismatch workaround).

Why revert

The web UI relies on ISO-8601 timestamps with an explicit UTC marker (Z) so JavaScript Date parsing and Intl/locale formatting behave correctly. The reverted change compensated for agent payloads that omit timezone information. This produced UI with none browser localized dates.

Root cause

The vulnerability-analysis agent sets started_at and completed_at with naive datetime.now().isoformat() strings (no Z or offset). The durable fix is for the agent to produce explicit UTC dates, not to adjust behavior in Morpheus backend or UI for naive timestamps.

Made with Cursor

Resolves https://redhat.atlassian.net/browse/APPENG-4833

@batzionb
Copy link
Copy Markdown
Collaborator Author

Agent fix here
RHEcosystemAppEng/vulnerability-analysis#217

Copy link
Copy Markdown
Collaborator

@zvigrinberg zvigrinberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@batzionb Good catch
This is better.
LGTM Approved.

Copy link
Copy Markdown
Contributor

@rhartuv rhartuv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

@batzionb batzionb merged commit 9808188 into RHEcosystemAppEng:main Mar 30, 2026
4 checks passed
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.

3 participants