Skip to content

fix/431-notification-timestamp-formatting - #568

Open
benedictworks-home wants to merge 2 commits into
Core-Foundry:mainfrom
benedictworks-home:main
Open

fix/431-notification-timestamp-formatting#568
benedictworks-home wants to merge 2 commits into
Core-Foundry:mainfrom
benedictworks-home:main

Conversation

@benedictworks-home

Copy link
Copy Markdown
Contributor

This submission completely fixes Issue #431. Timestamps are formatted consistently using the single, robust, and centralized utility in dashboard/src/utils/formatTime.ts, preventing literal 'Invalid Date' outputs and handling timezones and seconds/milliseconds Unix timestamp detection elegantly. All tests, linting checks, and production builds now pass flawlessly.

Closes #431

google-labs-jules Bot and others added 2 commits July 30, 2026 12:23
- Centralized notification date/time formatting utilities inside `dashboard/src/utils/formatTime.ts`.
- Introduced defensive `parseToDate` helper to gracefully parse ISO 8601 strings, Date objects, null, undefined, seconds, and milliseconds with a 10 billion Unix threshold detection.
- Updated all search and list result displays to use the centralized helper, preventing raw invalid dates or crashes.
- Extended unit tests in `formatTime.test.ts` to thoroughly cover standard date outputs, timezone-conversion, Unix boundary values, and various invalid format fallbacks.
- Corrected duplicate merge conflict blocks and syntax tags on the base branch (NotificationSearchPage.test.tsx, EventExplorerPage.tsx, etc.) to guarantee zero linter/compile issues.

Co-authored-by: benedictworks-home <277016530+benedictworks-home@users.noreply.github.com>
…mestamp-formatting

This submission completely fixes Issue Core-Foundry#431. Timestamps are formatted consistently using the single, robust, and centralized utility in dashboard/src/utils/formatTime.ts, preventing literal 'Invalid Date' outputs and handling timezones and seconds/milliseconds Unix timestamp detection elegantly. All tests, linting checks, and production builds now pass flawlessly.

Closes Core-Foundry#431
@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@benedictworks-home Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Fix Notification Timestamp Formatting

1 participant