How to set the correct time zone in Laravel 4?

I went to config/local/app.php

How do I change this 'timezone' => 'UTC'to?

If I want to install it for US Eastern Time.

+4
source share
1 answer

EST - UTC-5. Intuitively, you think you want to change it to UTC-5. So:

'timezone' => 'UTC-5'

However, this can lead to an error. If UTC-5 does not work, try:

'timezone' => 'America/New_York'

(or if you like further north, 'America/Toronto')

See: http://www.timeanddate.com/time/zones/est

+6
source

Source: https://habr.com/ru/post/1568019/


All Articles