Timezone - what to do to change it in template?

113 views
Skip to first unread message

Gosforth

unread,
Sep 15, 2017, 10:59:47 AM9/15/17
to Fat-Free Framework
Hi,

what should I do to change timezone

In template I have:

<check if="{{ strtotime(date('Y-m-d H:i:s')) > strtotime(@t1.start_date) }}">

Not working probably because timezone is not correct.

I do not understand the doc:


Where I should insert and what code to make it works?

Thanks

ved

unread,
Sep 15, 2017, 11:37:48 AM9/15/17
to Fat-Free Framework
Setting the TZ framework variable should work.

Gosforth

unread,
Sep 18, 2017, 3:59:26 AM9/18/17
to Fat-Free Framework
simply {{date_default_timezone_set()}} in the template?

ved

unread,
Sep 18, 2017, 5:37:43 AM9/18/17
to Fat-Free Framework
No. Set the TZ framework variable to your timezone

$f3->set('TZ', 'America/Los_Angeles');

Gosforth

unread,
Sep 20, 2017, 6:48:06 AM9/20/17
to Fat-Free Framework
Thank you!
Reply all
Reply to author
Forward
0 new messages