ethgaswatch icon indicating copy to clipboard operation
ethgaswatch copied to clipboard

Set time zones based on client

Open roughpandaz opened this issue 3 years ago • 2 comments

Description:

We should enable the page to resolve the the local timezone. This can be achieved through: Intl.DateTimeFormat().resolvedOptions().timeZone

Questions: Is there a reason why this isn't done? Happy to create PR for this.

roughpandaz avatar Dec 05 '21 04:12 roughpandaz

Hi, no specific reason why this isn't done, no. But it obviously makes sense. Would be great if you can submit a PR.

wslyvh avatar Dec 06 '21 17:12 wslyvh

@wslyvh Would be happy to do it. To help me get started, could you let me know which file(s) I should be looking at? I see these files so far:

  • https://github.com/wslyvh/ethgaswatch/blob/0277d2fdde24fd9e72e2caf5805d81dbd94e1e99/web/src/components/gasprices.tsx#L46
  • https://github.com/wslyvh/ethgaswatch/blob/23d3ab793f884e20fed94eaf3fa494ac59b0a4df/web/src/components/gaschart.tsx

roughpandaz avatar Dec 07 '21 17:12 roughpandaz