Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Bucephalus-lgtm/213cfc86567b0552584815b4bc620297 to your computer and use it in GitHub Desktop.
Save Bucephalus-lgtm/213cfc86567b0552584815b4bc620297 to your computer and use it in GitHub Desktop.

How to Change the Local Timezone of Your Firebase Hosting Server

If your website is hosted on Firebase Hosting and you need to change the server's timezone to UTC-6 (Central Standard Time), you can do so by configuring the timezone in your Firebase project's Cloud Functions. Here's how:

  • Open the Firebase Console and select your project.
  • Click on the "Functions" tab on the left-hand side menu.
  • Click on the "Settings" icon (gear icon) next to the "Overview" tab.
  • Scroll down to the "Advanced settings" section and click on the "Edit" button.
  • In the "Timezone" field, enter "America/Chicago" (for UTC-6 timezone).
  • Click on the "Save" button to apply the changes.

N.B.: Changes to your Cloud Functions timezone will only affect future function executions. It will not affect any previous executions.

Additionally, make sure to check the timezone settings in your application's code as well to ensure that they are also set to UTC-6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment