Timezone config change on the fly

Posted 3 years ago by jeevan628

Hi all,

I tried to change the display timezone on the fly. My config is default to Toronto time in my controller I specify

Config::set("app.timezone","Europe/London");
var_dump(\Carbon\Carbon::now());

But the var_dump timezone still show "America/Toronto" time.

Does anyone know the issue. Thank you

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.