Skip to content

Update UTC time to local time #3331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
May 14, 2024
Merged

Update UTC time to local time #3331

merged 20 commits into from
May 14, 2024

Conversation

MasterHW
Copy link
Contributor

Fixes: #issue
Only UTC time shown in UI (mainly Round Manager) Grants Lab (view)

Description

Adds function to retrieve local timezone shorthand (e.g. "EDT"), and adds it to local-determined time in a way that as closely mirrors the existing UTC approach as possible. Did not remove existing UTC methods, only replaced their references in the UI and testcase.

Checklist

This PR:

  • Does it add new payout or donation token? In this case, have they been added to the indexer to avoid it to crash?
  • Includes only changes relevant to the original ticket. Significant refactoring needs to be separated.
  • Doesn't disable eslint rules.
  • Doesn't work around the type checker (including but not limited to: type casts, non-null assertions, @ts-ignore, unjustified optional values).
  • Doesn't contain commented out code.
  • If adding/updating a feature, it adds/updates its test script on Notion.

@MasterHW MasterHW requested review from a team as code owners April 18, 2024 22:34
Copy link

vercel bot commented Apr 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2024 9:49pm
builder-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2024 9:49pm
explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2024 9:49pm
explorer-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2024 9:49pm
manager ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2024 9:49pm
manager-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2024 9:49pm

@MasterHW MasterHW merged commit 471e2a8 into gitcoinco:main May 14, 2024
12 checks passed
debuggingfuture pushed a commit to 0xl10n/grants-stack that referenced this pull request May 19, 2024
* update UTC references to local timezone

* actually fixed test case

* update UTC references to local timezone

* remove commented code

* convert round creator to local time

* restore explicit timeformat

* converted UTC references to local on settings page

* specify timezone when creating rounds

* fix errant unix stamp displaying

* improve getTimezoneName

* change over explorer timezones

* timezone names across all locales

* fix dependencies

---------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

All: Update all UTC time references to local time
7 participants