# Change Time zone

**URL:** <https://community.open-emr.org/t/change-time-zone/8790>\
**Category:** Management and Administration\
**Created:** [July 24, 2017, 2:37pm UTC](https://community.open-emr.org/t/change-time-zone/8790 "2017-07-24T14:37:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alzjaimer](https://community.open-emr.org/letter_avatar_proxy/v4/letter/a/7993a0/32.png) [@Alzjaimer](https://community.open-emr.org/u/Alzjaimer)\
**Post date:** [July 24, 2017, 2:37pm UTC](https://community.open-emr.org/t/change-time-zone/8790/1 "2017-07-24T14:37:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![APerez](https://community.open-emr.org/user_avatar/community.open-emr.org/aperez/32/14040_2.png) [@APerez](https://community.open-emr.org/u/APerez)\
**Post date:** [July 25, 2017, 3:14am UTC](https://community.open-emr.org/t/change-time-zone/8790/2 "2017-07-25T03:14:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MFCmanager](https://community.open-emr.org/user_avatar/community.open-emr.org/mfcmanager/32/11004_2.png) [@MFCmanager](https://community.open-emr.org/u/MFCmanager)\
**Post date:** [July 30, 2017, 1:16am UTC](https://community.open-emr.org/t/change-time-zone/8790/3 "2017-07-30T01:16:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![epsdky](https://community.open-emr.org/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@epsdky](https://community.open-emr.org/u/epsdky)\
**Post date:** [July 30, 2017, 4:05pm UTC](https://community.open-emr.org/t/change-time-zone/8790/4 "2017-07-30T16:05:46Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![MFCmanager](https://community.open-emr.org/user_avatar/community.open-emr.org/mfcmanager/32/11004_2.png) [@MFCmanager](https://community.open-emr.org/u/MFCmanager)\
**Post date:** [August 1, 2017, 9:36pm UTC](https://community.open-emr.org/t/change-time-zone/8790/5 "2017-08-01T21:36:57Z")

</div>

Thank you so much. That fixed it.

---

<div class="post-metadata">

**Author:** ![epsdky](https://community.open-emr.org/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@epsdky](https://community.open-emr.org/u/epsdky)\
**Post date:** [August 2, 2017, 4:39pm UTC](https://community.open-emr.org/t/change-time-zone/8790/6 "2017-08-02T16:39:13Z")

</div>

No problem.
