change time zone in heruko app to +3GMT

https://chatgpt.com/share/67111a66-6b88-8013-af6f-170d136f7cd0


 To change the time zone of a Heroku app to GMT+3, you can configure the time zone by setting the environment variable TZ in the Heroku settings.

Here's how you can do it:

Steps:

  1. Login to Heroku:

  2. Go to Your App:

    • Select the app for which you want to change the time zone.
  3. Configure Environment Variables:

    • Click on the "Settings" tab of your Heroku app.
    • Scroll down to the section "Config Vars".
    • Click on the "Reveal Config Vars" button.
  4. Add Time Zone:

    • In the "Key" field, type TZ.
    • In the "Value" field, type Etc/GMT-3 (note that GMT+3 is represented as GMT-3 in time zone settings).
    • Click "Add".

Why use Etc/GMT-3?

In the TZ configuration, the positive offsets from UTC are written with a minus sign (GMT-3), while negative offsets are written with a plus sign. This can be a little counterintuitive.

Once added, your application will use GMT+3 for any time-related operations.

Example:

bash
TZ=Asia/Riyadh

Now your Heroku app will run on GMT+3!

تعليقات

المشاركات الشائعة من هذه المدونة

ngx-extended-pdf-viewer

how to getting access token for https://fcm.googleapis.com/v1/projects/al-ayahya-co/messages:send for angular and backend nestjs

طريقة تفعيل زر Inline Keyboard في Telegram Bot