Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Add timestamp zone toggle to Explorer #22616

Merged
merged 2 commits into from
Jan 22, 2022

Conversation

radupasparuga
Copy link
Contributor

Problem

Timestamps in the explorer are displayed in UTC zone, which isn't the right tool for all jobs

Summary of Changes

Added a component (explorer/src/components/common/TimestampToggle.tsx) that allows the toggle between UTC and local, and shows an informative tooltip
Currently only added it on the Cluster stats page but it can be re-used on any component

import { TimestampToggle } from "components/common/TimestampToggle";
...
<TimestampToggle unixTimestamp={blockTime}></TimestampToggle>

Fixes #21642

@mergify mergify bot added the community Community contribution label Jan 20, 2022
@mergify mergify bot requested a review from a team January 20, 2022 21:42
jstarry
jstarry previously approved these changes Jan 21, 2022
Copy link
Contributor

@jstarry jstarry left a comment

Choose a reason for hiding this comment

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

Looks great! Do you mind fixing up things to make CI happy?

@mergify mergify bot dismissed jstarry’s stale review January 21, 2022 11:29

Pull request has been modified.

@mergify mergify bot requested a review from a team January 21, 2022 11:29
@radupasparuga
Copy link
Contributor Author

Fixed my code, should run smoothly now

@radupasparuga radupasparuga requested review from jstarry and removed request for a team January 21, 2022 13:42
@mergify mergify bot requested a review from a team January 21, 2022 13:43
@jstarry jstarry merged commit 88bf3c7 into solana-labs:master Jan 22, 2022
@jstarry
Copy link
Contributor

jstarry commented Jan 22, 2022

Sweet, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explorer: Feature request - Toggle local/UTC zoned timestamps on click
2 participants