feat: use relative-time element for PR timestamp localization#176
Merged
Paveltarno merged 1 commit intomainfrom Feb 2, 2026
Merged
feat: use relative-time element for PR timestamp localization#176Paveltarno merged 1 commit intomainfrom
Paveltarno merged 1 commit intomainfrom
Conversation
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.26-pr.176.484be29Prefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.26-pr.176.484be29"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.26-pr.176.484be29"
}
}
Preview published to npm registry — try new features instantly! |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Update PR description workflow to use GitHub's <relative-time> element
instead of static UTC timestamps. This provides automatic timezone
localization for all viewers.
Changes:
- Update timestamp format from "YYYY-MM-DD HH:MM UTC" to ISO 8601
- Wrap timestamp in <relative-time> HTML element
- Viewers now see relative time ("2 hours ago") with exact localized
time on hover
Fixes #175
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
f48cacf to
96c15a4
Compare
Paveltarno
added a commit
that referenced
this pull request
Feb 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements timestamp localization for auto-generated PR descriptions using GitHub's
<relative-time>web component. This replaces the static UTC timestamps with dynamically localized times that automatically adjust to each viewer's timezone.Changes Made
.github/workflows/pr-description.ymlline 81YYYY-MM-DD HH:MM UTCformat to ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ)<relative-time datetime="..."></relative-time>HTML elementBenefits
Example Output
What viewers will see:
On hover:
Testing
Next PR that triggers the auto-description workflow will use this new format. The
<relative-time>element is a standard GitHub web component that works across PR descriptions, comments, and issues.Fixes #175
🤖 Generated with Claude Code