Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] system time 6-hr. ahead
Date: Sun, 12 May 2013 05:01:38
Message-Id: 20130512050128.GC3907@syscon7.inet
In Reply to: Re: [gentoo-user] system time 6-hr. ahead by Manuel McLure
1 On 05/10/13 23:00, Manuel McLure wrote:
2 > For PHP you need to set the date.timezone variable in the php.ini file
3 > - that should fix things. For asterisk I have no clue.
4
5 Yes, you are correct.
6 In php time zone setting:
7
8 /etc/php/apache2-php5.4/php.ini
9 ...
10 date.timezone = Canada/Mountain
11
12 In asteriks:
13 cdr.conf
14 ...
15 [csv]
16 ;usegmtime=yes ; log date/time in GMT. Default is "no"
17
18 --
19 Joseph
20
21
22 > On Fri, May 10, 2013 at 10:31 PM, Joseph <[1]syscon780@×××××.com>
23 > wrote:
24 >
25 > On 05/10/13 23:25, Joseph wrote:
26 >
27 > My computer time reported by asterisk server or php database is 6hr
28 > ahead.
29 > Why?
30 > My desktop clock is correct, and command line "date" reporting local
31 > time as well.
32 > My /etc/conf.d/hwclock
33 > clock="local"
34 > clock_hctosys="YES"
35 > clock_systohc="YES"
36 > Should I set clock="UTC"?
37 > I'm running Windows via VirtualBox and I know windows is using
38 > "local" time.
39 >
40 > I forgot to mention:
41 > /etc/timezone
42 > Canada/Mountain
43 > --
44 > Joseph