# node-timezones **Repository Path**: mirrors_lokesh/node-timezones ## Basic Information - **Project Name**: node-timezones - **Description**: Testing timezone code on hosted Node server - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-16 - **Last Updated**: 2026-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Node Timezones A simple web app to test setting the timezone of the server. ## Setting the Timezone The server timezone is controlled by the `TZ` environment variable. The application reads this value using `process.env.TZ` and defaults to 'UTC' if not set: ```javascript const timeZone = process.env.TZ || 'UTC'; ``` For local dev, set the timezone before starting the server: ```bash export TZ=America/Los_Angeles npm start ``` To set the timezone on Heroku, use the following command: ```bash heroku config:set TZ=America/Los_Angeles ```