Home>Support>Fonction Date(‘h:i’) local incorrect with plugin “php code”

Fonction Date(‘h:i’) local incorrect with plugin “php code”

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi,
In “php code” widget, i try to use php fonction Date(‘H:i’), but it return hour UTC and not the local hour.
I’m in France and i have 2 hours of GMT.
How can i do to have the true local hour in widget “php code”.
Thanks for you help.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More