({
userTimezone,
update = false,
}: InitialTimezoneProps = {})
| 577 | } |
| 578 | |
| 579 | export const getUserInitialTimezone = ({ |
| 580 | userTimezone, |
| 581 | update = false, |
| 582 | }: InitialTimezoneProps = {}): string => { |
| 583 | if (userTimezone) { |
| 584 | return userTimezone; |
| 585 | } |
| 586 | |
| 587 | if (update) { |
| 588 | return 'Europe/London'; |
| 589 | } |
| 590 | |
| 591 | return getUserDefaultTimezone(); |
| 592 | }; |
| 593 | |
| 594 | export const getHourTimezone = (timeZone: string): number => { |
| 595 | const now = new Date(); |
no test coverage detected