()
| 138 | |
| 139 | /** Returns the time zone identifier for the current user. */ |
| 140 | export function getLocalTimeZone(): string { |
| 141 | if (localTimeZone == null) { |
| 142 | localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone; |
| 143 | } |
| 144 | |
| 145 | return localTimeZone!; |
| 146 | } |
| 147 | |
| 148 | /** Sets the time zone identifier for the current user. */ |
| 149 | export function setLocalTimeZone(timeZone: string): void { |
no test coverage detected