Repository navigation
feat: show the local time in profile previews - #1014
Merged
nunomaduro merged 1 commit intoOct 26, 2026
Merged
Conversation
Profile previews now show the same local time line as the profile, under the bio, for people who chose to share it. LocalTime can render as a paragraph for this.
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.
Follow-up to #803. Profile previews now show the same local time line as the profile, e.g.
8:14 AM (UTC +02:00), under the bio.It follows the profile's rules: it only shows when the person turned on "Show my local time on my profile" and has a timezone set, and it stays hidden on unavailable previews, like the bio.
timezoneandshow_local_time, so there is no backend change.LocalTime, which can now render as apinstead of anliand takes aclassName. The profile looks exactly as before.Tests
LocalTime: the time in the given zone with its offset, and a list item by default.timezoneandshow_local_timefor members and guests, since the preview now depends on them.vp fmt/vp lint,tscand the JS unit tests pass. PHPStan reports two errors inEmbedKnowledgeBaseCommand.php, which are already onproduction. I couldn't run the 100% coverage step locally because I don't have a coverage driver.Preview