Search code examples
phplaraveloctobercms

Octobercms timezone issue


I am trying to set the timezone in OctoberCMS to South African Standard Time (SAST), I have tried editing app.php with time zones CAT, SAST, UTC+2 and UTC+2:00 but none are accepted so I am unsure how to get the system to display the correct time.

/*
  |--------------------------------------------------------------------------
  | Application Timezone
  |--------------------------------------------------------------------------
  |
  | Here you may specify the default timezone for your application, which
  | will be used by the PHP date and date-time functions. We have gone
  | ahead and set this to a sensible default for you out of the box.
  |
 */
'timezone' => 'UCT',

Solution

  • I found the answer, simple as it is:

    'timezone' => 'Africa/Johannesburg',