From: Joseph <syscon780@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] system time 6-hr. ahead
Date: Sat, 11 May 2013 23:01:28 -0600 [thread overview]
Message-ID: <20130512050128.GC3907@syscon7.inet> (raw)
In-Reply-To: <CAGJrxsRbyfJtWyJYucVFLHguLnOtFNn9YxgqgboSxz6B1dSjvQ@mail.gmail.com>
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]syscon780@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
next prev parent reply other threads:[~2013-05-12 5:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-11 5:25 [gentoo-user] system time 6-hr. ahead Joseph
2013-05-11 5:31 ` Joseph
2013-05-11 6:00 ` Manuel McLure
2013-05-11 6:27 ` Joseph
2013-05-12 5:01 ` Joseph [this message]
2013-05-11 6:56 ` [gentoo-user] " Nikos Chantziaras
2013-05-11 14:23 ` Joseph
2013-05-11 19:29 ` Nikos Chantziaras
2013-05-11 8:58 ` [gentoo-user] " Wang Xuerui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130512050128.GC3907@syscon7.inet \
--to=syscon780@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox