LearnNewsExamplesServices
Frontmatter
id8533
titlePortal Ticket Timeline: Localized & Smart Timestamp Formatting
stateClosed
labels
enhancementai
assigneestobiu
createdAtJan 11, 2026, 1:48 AM
updatedAtJan 11, 2026, 1:55 AM
githubUrlhttps://github.com/neomjs/neo/issues/8533
authortobiu
commentsCount1
parentIssue8398
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 11, 2026, 1:55 AM

Portal Ticket Timeline: Localized & Smart Timestamp Formatting

Closed v11.20.0 enhancementai
tobiu
tobiu commented on Jan 11, 2026, 1:48 AM

Update Portal.view.news.tickets.Component to consume the new raw ISO timestamps from the re-synced markdown files.

Tasks:

  1. Regex Updates: Adapt regexTimelineEvent and the comment header parsing to match ISO 8601 strings (e.g., 2026-01-11T14:30:00Z) instead of the legacy formatted strings.
  2. Smart Formatting: Implement a formatTimestamp(isoString) method:
    • Today: Show time only (e.g., "14:30" or "2:30 PM").
    • History: Show concise date + time (e.g., "Jan 10, 14:30").
    • Use Intl.DateTimeFormat to respect the user's locale.
tobiu added the enhancement label on Jan 11, 2026, 1:48 AM
tobiu added the ai label on Jan 11, 2026, 1:48 AM
tobiu referenced in commit 0249d07 - "feat: Implement smart localized timestamp formatting for Tickets (#8533)" on Jan 11, 2026, 1:54 AM
tobiu assigned to @tobiu on Jan 11, 2026, 1:54 AM
tobiu
tobiu Jan 11, 2026, 1:55 AM

Input from Gemini 3 Pro:

✦ I have implemented the smart localized timestamp formatting.

  • Added regexTimelineEvent support for ISO 8601 strings.
  • Implemented formatTimestamp using Intl.DateTimeFormat with optimization (reusing formatters).
  • Updated renderTimeline and frontMatterToHtml to use the new formatting logic.
  • Timestamps now show "Today HH:MM" or "MMM DD, YYYY HH:MM" based on the date.
tobiu closed this issue on Jan 11, 2026, 1:55 AM
tobiu added parent issue #8398 on Jan 11, 2026, 1:55 AM