From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D09BC1381F3 for ; Sat, 11 May 2013 06:00:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 283A5E0922; Sat, 11 May 2013 06:00:17 +0000 (UTC) Received: from mail-ie0-f174.google.com (mail-ie0-f174.google.com [209.85.223.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E381CE08B1 for ; Sat, 11 May 2013 06:00:15 +0000 (UTC) Received: by mail-ie0-f174.google.com with SMTP id 10so9331477ied.19 for ; Fri, 10 May 2013 23:00:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=UKaFSh6OG4YdkVEOVvpdgTBn9HtF3mPDigc8pwPHwLk=; b=TuzHG7EoYVi0D1NHFB1yn6x1g6c2hZ1pRqUoApCqOpUKW3UddN4d6oHbD5oM3hcYjs ucj5OlV1ChhvaPow/NFMjPFEMElxrHRzecgX5FswkenHwVlRcTJvljAuZpk6z2XnBJmS fgAs9SxL2jAAMDlwsZEDoSzPAHhazlZxQy2ACdHrcJ8OKL9/zoPRWRh9GdXuolFIV5bT lXEhwWZ87MRZjXOHOgCeprVwTr8fXMcrPL7LDvK9Nve2GPf0a6p9iKzZ/oKU6DRnHeWq HP04NNbRJu952K8dM7riiBHtf+kZv2tDvDTLktYwV25DuYsxmDI8Dc3BXuxGQeowF02U MpmA== X-Received: by 10.42.102.211 with SMTP id j19mr9292467ico.0.1368252014682; Fri, 10 May 2013 23:00:14 -0700 (PDT) Received: from mail-ie0-x22e.google.com (mail-ie0-x22e.google.com [2607:f8b0:4001:c03::22e]) by mx.google.com with ESMTPSA id ua6sm3076974igb.0.2013.05.10.23.00.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 May 2013 23:00:14 -0700 (PDT) Received: by mail-ie0-f174.google.com with SMTP id 10so9331441ied.19 for ; Fri, 10 May 2013 23:00:13 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.50.192.165 with SMTP id hh5mr4211148igc.89.1368252013351; Fri, 10 May 2013 23:00:13 -0700 (PDT) Received: by 10.64.44.194 with HTTP; Fri, 10 May 2013 23:00:13 -0700 (PDT) In-Reply-To: <20130511053125.GB28807@syscon7.inet> References: <20130511052541.GA28807@syscon7.inet> <20130511053125.GB28807@syscon7.inet> Date: Fri, 10 May 2013 23:00:13 -0700 Message-ID: Subject: Re: [gentoo-user] system time 6-hr. ahead From: Manuel McLure To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=14dae9340865382d6104dc6affe5 X-Gm-Message-State: ALoCoQlFWNtdpYqeUkn8aVCDMY9bIcQeUNeI7k/PVtTUWxjd5Vmv8R73RFNtQCku5t6LWgaXV0wW X-Archives-Salt: 08dfec83-02e1-4726-b7c5-f9e7e4536f97 X-Archives-Hash: d6d09e9d45f9d80eff0cc9bc7ec2e198 --14dae9340865382d6104dc6affe5 Content-Type: text/plain; charset=UTF-8 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? >> >> 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 > > -- Manuel A. McLure WW1FA ...for in Ulthar, according to an ancient and significant law, no man may kill a cat. -- H.P. Lovecraft --14dae9340865382d6104dc6affe5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 <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.<= br> Why?

My desktop clock is correct, and command line "date" reporting lo= cal time as well.
My /etc/conf.d/hwclock
clock=3D"local"
clock_hctosys=3D"YES"
clock_systohc=3D"YES"

Should I set clock=3D"UTC"?
I'm running Windows via VirtualBox and I know windows is using "lo= cal" time.

I forgot to mention:
/etc/timezone
Canada/Mountain
--
Joseph




-- Manuel A. McLure WW1FA <manuel@mc= lure.org> <http://www.mclure.or= g>
...for in Ulthar, according to an ancient and significant law,
no man ma= y kill a cat.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0=C2=A0 -- H.P. Lovecraft --14dae9340865382d6104dc6affe5--