| 123456789101112 |
- // Node-only: reads `process.env`. Re-exported via `@pipeline/shared/node`,
- // never from the client-safe main barrel.
- import { DEFAULT_TIMEZONE } from "./date.js";
- /**
- * Timezone used for every displayed and folder date. Defaults to Asia/Shanghai
- * (correct for a Beijing-daily product regardless of the host/container clock);
- * override with the `TIMEZONE` env var (e.g. `TIMEZONE=America/Los_Angeles`).
- */
- export function getTimezone(): string {
- return process.env.TIMEZONE || DEFAULT_TIMEZONE;
- }
|