Page 1 of 1

Time Issue

PostPosted: Mon Nov 05, 2018 10:29 am
by ayan07
Hi There ,

My Vicibox Server specification is here :

(Vicibox 8.1.2 from .iso | Version 2.14b0.5 | Asterisk 13.21.1 | Express Installation mode | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel Xeon CPU)

Please see my server time log in below :-

vicibox81:~ # date
Mon Nov 5 10:20:05 EST 2018

vicibox81:~ # ls -l /etc/localtime
lrwxrwxrwx 1 root root 30 Nov 5 09:54 /etc/localtime -> /usr/share/zoneinfo/US/Eastern

When I check in my campaign real time report time is showing as "Time : 2018-11-05 15:20:05" ....Time shows as 3 hrs array...

how to synchronize this two different time...

Please Advise...

Roy

Re: Time Issue

PostPosted: Mon Nov 05, 2018 10:40 am
by hansg
Check Default Local GMT Setting in Admin > System Settings

Re: Time Issue

PostPosted: Mon Nov 05, 2018 10:42 am
by ayan07
its -5.00 in default local gmt...

Please Advise....

Re: Time Issue

PostPosted: Mon Nov 05, 2018 10:47 am
by hansg
Check Local GMT Setting in Admin > Servers

Re: Time Issue

PostPosted: Tue Nov 06, 2018 3:52 am
by ayan07
its -5.00 in local GMT in Admin > Server & Admin > System Settings...

But still its different time ...

date
Tue Nov 6 09:26:44 UTC 2018

ls -l /etc/localtime
lrwxrwxrwx 1 root root 30 Nov 5 14:54 /etc/localtime -> /usr/share/zoneinfo/US/Eastern

When I check in my campaign real time report time is showing as "Time : 2018-11-06 09:26:44" which is same as dialer time ... but present time in USA Estern is "4:26 AM" exactly here is the time discrepancies...

How to streamline this time issue bcoz i want the dialer time remains exactly same based on real usa estern time...

Please Advise....

Re: Time Issue

PostPosted: Tue Nov 06, 2018 8:50 am
by blackbird2306
First change your system to right timezone:
Code: Select all
1. Type "yast" in linux cli
System --> Date and Time --> Choose right timezone and save your changes

Next change or verify your php timezone:
Code: Select all
Locate the loaded php.ini file:
php -i |grep "php.ini"  --> my result is "Loaded Configuration File => /etc/php5/cli/php.ini" (please note this is the config for CLI)
this means my php.ini for apache is located in /etc/php5/apache2/ directory (not /etc/php5/cli).

open the php.ini and find this part:
; Defines the default timezone used by the date functions
; http://php.net/date.timezone

verify this line:
date.timezone = US/Eastern

restart apache:
Code: Select all
systemctl reload apache2

Re: Time Issue

PostPosted: Wed Nov 14, 2018 9:00 am
by ayan07
Thanks blackbird2306 !!! It worked ...

Thanks a lot....

Roy