Download packages/api/session-controller/src/client/time-zone.ts from SaylorTwift/deepseek-harness: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/SaylorTwift/deepseek-harness/resolve/main/packages/api/session-controller/src/client/time-zone.ts
- Command line
-
hf download hf://SaylorTwift/deepseek-harness/packages/api/session-controller/src/client/time-zone.ts
-
curl -L -o time-zone.ts https://huggingface.co/SaylorTwift/deepseek-harness/resolve/main/packages/api/session-controller/src/client/time-zone.ts
514 Bytes
| /** Browser-owned time-zone sampling for one prompt RPC. */ | |
| /** | |
| * Resolve the current browser IANA zone for one outbound operation. | |
| * @returns The browser-provided canonical zone. | |
| * @throws when the runtime cannot provide a non-empty zone. | |
| */ | |
| export function resolvedClientTimeZone(): string { | |
| const timeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone | |
| if (typeof timeZone !== 'string' || timeZone.length === 0) { | |
| throw new Error('browser time zone is unavailable') | |
| } | |
| return timeZone | |
| } | |