{"id":8409,"date":"2016-08-13T15:14:17","date_gmt":"2016-08-13T14:14:17","guid":{"rendered":"https:\/\/wp.okra.host\/article\/setting-timezone-and-locale\/"},"modified":"2021-03-07T14:11:27","modified_gmt":"2021-03-07T13:11:27","slug":"setting-timezone-and-locale","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/setting-timezone-and-locale\/","title":{"rendered":"Setting timezone and locale"},"content":{"rendered":"<h2 id=\"overview\" >\u00dcbersicht<\/h2>\n<p>Timezone and locale may be changed for the active user within the <a href=\"https:\/\/kb.okra.host\/de\/control-panel\/logging-into-the-control-panel\/\">Bedienfeld<\/a> via <strong>Konto<\/strong> &gt; <strong>Settings<\/strong> &gt;\u00a0<span style=\"text-decoration: underline\">Localization<\/span>. Any timezone changes will be inherited by <a href=\"https:\/\/kb.okra.host\/de\/terminal\/accessing-terminal\/\">terminal applications<\/a>\u00a0and one-click applications created following adjustment. Other PHP applications will need to be adjusted on a case-by-case basis.<\/p>\n<h2 id=\"changing-timezones-in-php-applications\" >Changing timezones in PHP applications<\/h2>\n<p>A timezone may be set for a PHP application within the control panel.<\/p>\n<ol>\n<li>Visit <strong>Web<\/strong> &gt; <strong>.htaccess Manager<\/strong>.<\/li>\n<li>Select the hostname to adjust, if the app resides in a folder under the domain, select <em>Edit Subdir<\/em>.<\/li>\n<li>Select <strong>PHP<\/strong> f\u00fcr <em>Personality<\/em><\/li>\n<li>Select <strong>php_value<\/strong> f\u00fcr <em>Directive<\/em><\/li>\n<li>Under <strong>Value<\/strong> enter <code>date.timezone\u00a0<em>TIMEZONE<\/em><\/code> wobei <em>TIMEZONE<\/em> follows an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Tz_database\">Olson-compatible<\/a> timezone.\n<ul>\n<li>All valid timezones are listed under <strong>Konto<\/strong> &gt; <strong>Settings<\/strong> &gt; <strong>Localization <\/strong>&gt;\u00a0<strong>Timezone<\/strong><\/li>\n<li>Olson format uses regional major cities instead of timezone names to configure timezone and latitude\/longitude.<\/li>\n<li><span style=\"color: #0000ff\">Beispiel:<\/span> set timezone to PST\/PDT, <code>date.timezone America\/Los_Angeles<\/code><\/li>\n<li><span style=\"color: #0000ff\">Beispiel:<\/span> set timezone to\u00a0GMT, use London: <code>date.timezone Europe\/London<\/code><\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Add<\/strong> to add the directive<\/li>\n<li>Click\u00a0<strong>Save Changes<\/strong> to commit changes<\/li>\n<\/ol>\n<div id=\"attachment_1337\" style=\"width: 1177px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2016\/08\/timezone-config-php.png\" rel=\"lightbox-0\" data-lbwps-width=\"1167\" data-lbwps-height=\"225\" data-lbwps-srcsmall=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2016\/08\/timezone-config-php.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-1337\" loading=\"lazy\" class=\"size-full wp-image-1337\" src=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2016\/08\/timezone-config-php.png\" alt=\"Setting default timezone for a given PHP application within the control panel .htaccess manager.\" width=\"1167\" height=\"225\" \/><\/a><\/p>\n<p id=\"caption-attachment-1337\" class=\"wp-caption-text\">Setting default timezone for a given PHP application within the control panel .htaccess manager.<\/p>\n<\/div>\n<h3 id=\"failed-timezone-change\" >Failed timezone change<\/h3>\n<p>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.<\/p>\n<h2 id=\"see-also\" >Siehe auch<\/h2>\n<ul>\n<li><a href=\"http:\/\/php.net\/manual\/en\/timezones.php\">List of supported timezones<\/a> (PHP.org)<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Overview Timezone and locale may be changed for the active user within the control panel via Account &gt; Settings &gt;\u00a0Localization. Any timezone changes will be inherited by terminal applications\u00a0and one-click applications created following adjustment. Other PHP applications will need to be adjusted on a case-by-case basis. Changing timezones in PHP&#8230;<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[56],"ht-kb-tag":[],"class_list":["post-8409","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-control-panel"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8409"}],"version-history":[{"count":1,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8409\/revisions"}],"predecessor-version":[{"id":8410,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8409\/revisions\/8410"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media\/8411"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8409"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8409"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}