[gentoo-user] system time 6-hr. ahead

2013-05-10 Thread Joseph
My computer time reported by asterisk server or php database is 6hr ahead. Why? My desktop clock is correct, and command line "date" reporting local time as well. My /etc/conf.d/hwclock clock="local" clock_hctosys="YES" clock_systohc="YES" Should I set clock="UTC"? I'm running Windows via Virt

Re: [gentoo-user] system time 6-hr. ahead

2013-05-10 Thread Joseph
On 05/10/13 23:25, Joseph wrote: My computer time reported by asterisk server or php database is 6hr ahead. Why? My desktop clock is correct, and command line "date" reporting local time as well. My /etc/conf.d/hwclock clock="local" clock_hctosys="YES" clock_systohc="YES" Should I set clock="U

Re: [gentoo-user] system time 6-hr. ahead

2013-05-10 Thread Manuel McLure
For PHP you need to set the date.timezone variable in the php.ini file - that should fix things. For asterisk I have no clue. On Fri, May 10, 2013 at 10:31 PM, Joseph wrote: > On 05/10/13 23:25, Joseph wrote: > >> My computer time reported by asterisk server or php database is 6hr ahead. >> Why

Re: [gentoo-user] system time 6-hr. ahead

2013-05-10 Thread Joseph
On 05/10/13 23:00, Manuel McLure wrote: For PHP you need to set the date.timezone variable in the php.ini file - that should fix things. For asterisk I have no clue. When I set in: /etc/conf.d/hwclock clock="UTC" my server php and asterisk reporting correct clock setting by on my desktop

Re: [gentoo-user] system time 6-hr. ahead

2013-05-11 Thread Wang Xuerui
2013/5/11 Joseph : > My computer time reported by asterisk server or php database is 6hr ahead. > Why? > > My desktop clock is correct, and command line "date" reporting local time as > well. > My /etc/conf.d/hwclock > clock="local" > clock_hctosys="YES" > clock_systohc="YES" > > Should I set clock

Re: [gentoo-user] system time 6-hr. ahead

2013-05-11 Thread Joseph
On 05/10/13 23:00, Manuel McLure wrote: For PHP you need to set the date.timezone variable in the php.ini file - that should fix things. For asterisk I have no clue. Yes, you are correct. In php time zone setting: /etc/php/apache2-php5.4/php.ini ... date.timezone = Canada/Mountain In aste