Setting Timezone in Kirby 3

In Kirby 2, there was a timezone config option that accepted a value such as America/Los_Angeles.

It seems to have been completely removed in Kirby 3, but looking at the Kirby 2 code, all it seems to have really did was call:

date_default_timezone_set($this->options['timezone']);

Should I just call date_default_timezone_set('America/Los_Angeles') myself now, or should I be aware of other places this would have been used in Kirby 2?

You can set the timezone at the top of your config or even in the index.php with date_default_timezone_set('Europe/Amsterdam');. But since this is a server setting, Iā€™d recommend the php.ini, if your hosting allows that.

The timezone config setting has indeed been removed.

3 Likes