How to handle daylight savings in docker / php setup

Hi there fellow Wapplers,

Here’s a PHP-n00b question for you:

How do you handle daytime savings in a docker / php setup?
This article explains how to handle daylight savings time in PHP. It involves setting you timezone in your php.ini file…

But I can’t seem to find the php.ini file in my Wappler project.

I tried using the data formatter to Local Time function, but sadly that did not result in the proper current time for my country (Netherlands).

Thanks in advance for pointing me in the right direction.

Bg

Jelle

Hi.

How are you running the PHP Project on your local machine?
Wappler does not have a built in PHP server, so there is no php.ini file in Wappler project. It will be situated wherever your PHP server is where the application is running.

Thanks for your reply, Sid. I run wapplers built in docker setup. So the php server lives within a container created by wappler, in a way.

Where is it usually located? Maybe I can just find it in one of the containers if I know where to find it.

In case of docker, you will have make some configuration in dockerfile or .yaml file.
Try searching for it on Google.