Trying to setup time groups, and I can’t get FreePBX to display anything besides UTC.
I read through some previous threads, and tried the following:
-Set timezone in php.ini and rebooted
-Ensured system time is correct
date in bash returns the correct time. PHP Info in FreePBX returns the correct time zone as well.
The UTC time reported in time groups is correct, but it’d be a lot easier if it would report EST so that I don’t have to figure times out manually (and risk a small but costly error).
Is there a way to do this without sysadmin (I’m on CentOS 7)?
Looks to be set correctly based on the above:
[[email protected] xxxxxxx]# timedatectl Local time: Thu 2016-06-09 18:31:56 EDT Universal time: Thu 2016-06-09 22:31:56 UTC RTC time: Thu 2016-06-09 22:31:56 Time zone: America/New_York (EDT, -0400) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: yes Last DST change: DST began at Sun 2016-03-13 01:59:59 EST Sun 2016-03-13 03:00:00 EDT Next DST change: DST ends (the clock jumps one hour backwards) at Sun 2016-11-06 01:59:59 EDT Sun 2016-11-06 01:00:00 EST
did you restart apache after you made the php.ini change?
Sure did. Tried a full reboot as well.
grep 'date.timezone' /etc/php.ini
grep 'date.timezone' /etc/php.d/*.ini
[[email protected] cron.d]# grep 'date.timezone' /etc/php.ini
date.timezone = "US/New_York"
[[email protected] cron.d]# grep 'date.timezone' /etc/php.d/*.ini
[[email protected] cron.d]#
Go into Advanced Settings in FreePBX and change the timezone.
Wow I feel like an idiot. Thanks for the help, both of you!
2 posts were split to a new topic: CDR Timezone and PHP