# Time zone problem on EMR

**URL:** <https://community.open-emr.org/t/time-zone-problem-on-emr/8830>\
**Category:** Management and Administration\
**Created:** [August 3, 2017, 12:25am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830 "2017-08-03T00:25:59Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ncavalier](https://community.open-emr.org/user_avatar/community.open-emr.org/ncavalier/32/13923_2.png) [@ncavalier](https://community.open-emr.org/u/ncavalier)\
**Post date:** [August 3, 2017, 12:25am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/1 "2017-08-03T00:25:59Z")

</div>

My EMR calendar after 6pm, starting showing next day calendar.  
Today 08/02/2017 but my calendar now after 6 pm showing - Thursday, August 3, 2017. In this case I cant create new encounters from calendars for arrived patients  
Please let me know how to resolve this problem

---

<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 3, 2017, 4:58am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/2 "2017-08-03T04:58:34Z")

</div>

Try this, it worked for me.

> [@Change Time zone](https://community.open-emr.org/t/change-time-zone/8790/4):
>
> 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:** ![visolveemr](https://community.open-emr.org/user_avatar/community.open-emr.org/visolveemr/32/10974_2.png) [@visolveemr](https://community.open-emr.org/u/visolveemr)\
**Post date:** [August 3, 2017, 10:56am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/3 "2017-08-03T10:56:05Z")

</div>

Hi ncavalier,

Make sure that you are having the “date.timezone” variable in php.ini as per your location.  
If not,please follow the below steps:  
1.Follow the link to find your time zone value [http://php.net/manual/en/timezones.php](http://php.net/manual/en/timezones.php)  
2.Open the php.ini file[dir: /etc/php5/apache2/] and change the variable as per your location [date.timezone = America/Los\_Angeles]  
3.Finally save and restart your apache web server.

Let us know,above solution solves your problem.If the problem persists,share the screen-shot.

Thanks  
[ViSolve](http://www.visolve.com/hc/)

---

<div class="post-metadata">

**Author:** ![ncavalier](https://community.open-emr.org/user_avatar/community.open-emr.org/ncavalier/32/13923_2.png) [@ncavalier](https://community.open-emr.org/u/ncavalier)\
**Post date:** [September 13, 2017, 1:53am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/4 "2017-09-13T01:53:36Z")

</div>

I did all recommended corrections, but problem still not resolved

Attached picture with time zone change

 ![20170912_211152 (571x640)](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/0/083b76ccc0a1246c615581a5e7b940e5e5578aa1.jpg)

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [September 13, 2017, 2:09am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/5 "2017-09-13T02:09:34Z")

</div>

@ncavalier remove the leading semicolon which comments out the setting and restart the webserver

---

<div class="post-metadata">

**Author:** ![ncavalier](https://community.open-emr.org/user_avatar/community.open-emr.org/ncavalier/32/13923_2.png) [@ncavalier](https://community.open-emr.org/u/ncavalier)\
**Post date:** [September 13, 2017, 2:16am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/6 "2017-09-13T02:16:16Z")

</div>

I have a problem after restarting program  
Cant login

Error message

Fatal error: Call to undefined function mb\_internal\_encoding() in C:\xampp\htdocs\openemr\interface\globals.php on line 127

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [September 13, 2017, 2:42am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/7 "2017-09-13T02:42:48Z")

</div>

ok @ncavalier checkout your php.ini settings, you need `extension=php_mbstring.dll` for xampp

> <https://stackoverflow.com/questions/35826412/phpmyadmin-error-the-mbstring-extension-is-missing>

if you’re running linux see this [http://open-emr.org/wiki/index.php/OpenEMR\_System\_Architecture#OpenEMR\_Dependencies](http://open-emr.org/wiki/index.php/OpenEMR_System_Architecture#OpenEMR_Dependencies)

---

<div class="post-metadata">

**Author:** ![ncavalier](https://community.open-emr.org/user_avatar/community.open-emr.org/ncavalier/32/13923_2.png) [@ncavalier](https://community.open-emr.org/u/ncavalier)\
**Post date:** [September 13, 2017, 3:26am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/8 "2017-09-13T03:26:40Z")

</div>

Thank you for reply  
I’m just out of office. It’s 11 already, will try to resolve it tomorrow morning

I didn’t touch anything, just added Amerika\_New York, and there was no any changes. But after restarted computer, received error message

What I need to do resolve this problem

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [September 13, 2017, 10:26am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/9 "2017-09-13T10:26:58Z")

</div>

say you’re running ubuntu with mysql then look about half way down the above openemr dependencies link which instructs you to run this from the command line

`sudo apt-get install apache2 mysql-server libapache2-mod-php libtiff-tools php php-mysql php-cli php-gd php-xsl php-curl php-mcrypt php-soap php-json php-gettext imagemagick php-mbstring php-zip php-ldap`

then

`sudo service apache2 restart`

---

<div class="post-metadata">

**Author:** ![ncavalier](https://community.open-emr.org/user_avatar/community.open-emr.org/ncavalier/32/13923_2.png) [@ncavalier](https://community.open-emr.org/u/ncavalier)\
**Post date:** [September 13, 2017, 11:07am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/10 "2017-09-13T11:07:31Z")

</div>

Good morning Stephen  
Thank you for your help!

Im using Windows for my EMR. All I did, just added New York time zone in php file, and saved . First it was no reaction in time zone update. After I restarted apache server, it’s started problem to login

---

<div class="post-metadata">

**Author:** ![visolveemr](https://community.open-emr.org/user_avatar/community.open-emr.org/visolveemr/32/10974_2.png) [@visolveemr](https://community.open-emr.org/u/visolveemr)\
**Post date:** [September 13, 2017, 11:37am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/11 "2017-09-13T11:37:35Z")

</div>

Hi ncavaller,

Can you please send the error log to examine the issue further.

Thanks  
[ViSolve](http://www.visolve.com/hc)

---

<div class="post-metadata">

**Author:** ![ncavalier](https://community.open-emr.org/user_avatar/community.open-emr.org/ncavalier/32/13923_2.png) [@ncavalier](https://community.open-emr.org/u/ncavalier)\
**Post date:** [September 13, 2017, 2:07pm UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/12 "2017-09-13T14:07:05Z")

</div>

Fatal error: Call to undefined function mb\_internal\_encoding() in C:\xampp\htdocs\openemr\interface\globals.php on line 127

---

<div class="post-metadata">

**Author:** ![ncavalier](https://community.open-emr.org/user_avatar/community.open-emr.org/ncavalier/32/13923_2.png) [@ncavalier](https://community.open-emr.org/u/ncavalier)\
**Post date:** [September 13, 2017, 3:05pm UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/13 "2017-09-13T15:05:52Z")

</div>

Thank you Stephan and visolveemr for your support, I resolved problem with login, I put by mistake coma before php,ini

Now I just need to resolve problem with time zone

Thank you very mach!!!

---

<div class="post-metadata">

**Author:** ![visolveemr](https://community.open-emr.org/user_avatar/community.open-emr.org/visolveemr/32/10974_2.png) [@visolveemr](https://community.open-emr.org/u/visolveemr)\
**Post date:** [September 15, 2017, 5:26am UTC](https://community.open-emr.org/t/time-zone-problem-on-emr/8830/14 "2017-09-15T05:26:12Z")

</div>

@ncavalier,

![imageedit_1_9737024869](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/3/3b861c8b3fc57e23645e0021b4b5b72ac746b9eb.jpg)

Did you removed the leading semicolon in php.ini file , Which has been highlighted in the above image.

Thanks,  
[ViSolve](http://www.visolve.com/hc).
