Change Time zone

Hello

i need help
i change the time zone in the php file, because the time is 8 hours ahead.
This is my php file in this moment:

[Date]
; Defines the default timezone used by the date functions

;date.timezone = America/Bogota

;date.default_latitude = 31.7667

;date.default_longitude = 35.2333

;date.sunrise_zenith = 90.583333

;date.sunset_zenith = 90.583333

However, the change did not work and the time still continues ahead.
I restart the apache server, try changing the default latitude and longitude, but this did not work
The values ​​used were latitude 4.000 longitude -72.000
But this did not work either

I know the time of the program when the vital signs are recorded, because there the date and time, the date is correct but the time that it registers, is 8 hours ahead.
Is there any way in the program to modify this?
Why changing the time zone in the php.ini does not change latitude or longiotude automatically?

Thanks for your help

Remove the semicolon “;” at beginning of date.timezone. restart Apache.
That should be sufficient.

I wish this worked for me but the time is still 6 hours ahead. What should I try next?

Hello @Alzjaimer and @MFCmanager,

Suggest looking for a second timezone setting in php.ini

In XAMPP 5.6.20 there are two. One at about half way through the file (inactive (commented out)) and another near the end (active).

1 Like

Thank you so much. That fixed it.

No problem.