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 asteriks: cdr.conf ... [csv] ;usegmtime=yes ; log date/time in GMT. Default is "no" -- Joseph
On Fri, May 10, 2013 at 10:31 PM, Joseph <[1]syscon...@gmail.com> wrote: 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="UTC"? I'm running Windows via VirtualBox and I know windows is using "local" time. I forgot to mention: /etc/timezone Canada/Mountain -- Joseph