Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42114 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27236 invoked from network); 5 Dec 2008 10:47:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2008 10:47:27 -0000 Authentication-Results: pb1.pair.com header.from=surreal.w00t@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=surreal.w00t@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.171 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: surreal.w00t@gmail.com X-Host-Fingerprint: 66.249.92.171 ug-out-1314.google.com Received: from [66.249.92.171] ([66.249.92.171:5914] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/38-20960-CB609394 for ; Fri, 05 Dec 2008 05:47:25 -0500 Received: by ug-out-1314.google.com with SMTP id 39so4057152ugf.37 for ; Fri, 05 Dec 2008 02:47:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :sender:to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=JmSSvbg4LbA9yDO2KAdJ5nW4OCIyG/HyYKtP+s1GIJQ=; b=rcGzdypEdYdZdxhZVOQgvwTXOAigcFiWpvlg+4Dk03O/8L12CzekVzYdSxdo7OVh9P f7TSFr4LwL9qBGtYxrg4U1Jis3c8wjQLV7hDTDn/AtIbVllXYGnhBYGcjodGTk3bWkgc yMr+MrwIfDQWsc2NGCtI+h8Vj5+tyLXBUFVcY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references:x-google-sender-auth; b=Dik2mjIqNTucbsc7xu3/KzfH8RZkW3DA4m0lCYP8oWchXXiAfNYgSN2Td3vl1rCSR8 VNKTXUWxVyAsTE0LyBNTivCHHG9dcwOhRTF3iH4/ZBdjp7SC59MRu5FtIclogwI5TmTP MoTNapmPwKvSLOLGhDQwqIkhveWfnYFmoTt/o= Received: by 10.86.93.17 with SMTP id q17mr530707fgb.8.1228474042066; Fri, 05 Dec 2008 02:47:22 -0800 (PST) Received: by 10.86.87.15 with HTTP; Fri, 5 Dec 2008 02:47:21 -0800 (PST) Message-ID: Date: Fri, 5 Dec 2008 10:47:22 +0000 Reply-To: viroteck@viroteck.net Sender: surreal.w00t@gmail.com To: "Karsten Dambekalns" Cc: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4938C8FB.6010509@lsces.co.uk> X-Google-Sender-Auth: 0c6add8becf8d3ca Subject: Re: [PHP-DEV] Upgrading to internal DateTime From: viroteck@viroteck.net ("Robin Burchell") A unix timestamp is in UTC, offsets are stored and applied seperately. See tzset(3). Unless someone has misconfigured their system, that is. On Fri, Dec 5, 2008 at 10:16 AM, Karsten Dambekalns wrote: > Hi Derick. > > Derick Rethans wrote: >> >> This is not the correct thing to do, as you will lose timezone >> information. The W3C format only stores UTC offsets (in the form of +00:00). >> However, that same UTC offset can be used in different areas with different >> DST changes. Best thing is to store in Unix timestamps. > > And how does a unix timestamp preserve timezone information? Or am I > completely off track? > > Regards, > Karsten > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >