1. Startseite
  2. Bedienfeld
  3. Setting timezone and locale

Setting timezone and locale

Übersicht

Timezone and locale may be changed for the active user within the Bedienfeld via Konto > SettingsLocalization. Any timezone changes will be inherited by terminal applications and one-click applications created following adjustment. Other PHP applications will need to be adjusted on a case-by-case basis.

Changing timezones in PHP applications

A timezone may be set for a PHP application within the control panel.

  1. Visit Web > .htaccess Manager.
  2. Select the hostname to adjust, if the app resides in a folder under the domain, select Edit Subdir.
  3. Select PHP für Personality
  4. Select php_value für Directive
  5. Under Value enter date.timezone TIMEZONE wobei TIMEZONE follows an Olson-compatible timezone.
    • All valid timezones are listed under Konto > Settings > Localization Timezone
    • Olson format uses regional major cities instead of timezone names to configure timezone and latitude/longitude.
    • Beispiel: set timezone to PST/PDT, date.timezone America/Los_Angeles
    • Beispiel: set timezone to GMT, use London: date.timezone Europe/London
  6. Click Add to add the directive
  7. Click Save Changes to commit changes
Setting default timezone for a given PHP application within the control panel .htaccess manager.

Setting default timezone for a given PHP application within the control panel .htaccess manager.

Failed timezone change

If the timezone change is not reflected in the application, then it sets timezone at runtime. These applications will provide a configuration option to make timezone changes. Check with your application documentation for assistance.

Siehe auch

Aktualisiert am März 7, 2021

Verwandte Artikel