Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65923 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89973 invoked from network); 19 Feb 2013 03:28:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 03:28:14 -0000 Authentication-Results: pb1.pair.com header.from=xwisdom@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=xwisdom@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.52 as permitted sender) X-PHP-List-Original-Sender: xwisdom@gmail.com X-Host-Fingerprint: 209.85.214.52 mail-bk0-f52.google.com Received: from [209.85.214.52] ([209.85.214.52:62094] helo=mail-bk0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/1A-34654-D41F2215 for ; Mon, 18 Feb 2013 22:28:14 -0500 Received: by mail-bk0-f52.google.com with SMTP id jk13so2821551bkc.39 for ; Mon, 18 Feb 2013 19:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=1/2WVDwO4uaycPifgMNfMUQhkg079Cz+sduU2vflrCs=; b=nol5tNjeV1MklBUyg7BxNkBnyYrnlCuAf3J85lAA+Lcd5uTScFJHGEkCU75RfXv5YF q4CNhMARvmr2WSQsDZ9zzaI+ptHDg8xsRHIekhDDSH+wD8OuCo7b9HISUVm+PGKicP6z X1GqtVZQDOfv0yJEo5Xwhi6s226tkZNsfuatVcBM5gM1TCvsOr/bREsUzrdpdGBKtyNf q8f1tpzsx50BqAnElPBJg40HotXuFwbuZRxn1gMIa1WpFkumucAgapdMrX8p0DKSyGmf VGHbMCsKNVkkaz/86fUtIzP4alHUyLC3sa3Q2OPZz6kXNMa3Kc/L/AbEeyKieLTWBTsY lWRw== MIME-Version: 1.0 X-Received: by 10.204.147.138 with SMTP id l10mr5609849bkv.84.1361244490207; Mon, 18 Feb 2013 19:28:10 -0800 (PST) Received: by 10.204.41.135 with HTTP; Mon, 18 Feb 2013 19:28:10 -0800 (PST) Date: Mon, 18 Feb 2013 22:28:10 -0500 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=0015174c42aa4a933304d60b6ee7 Subject: Getting separate outputs with Date Functions From: xwisdom@gmail.com (Raymond Irving) --0015174c42aa4a933304d60b6ee7 Content-Type: text/plain; charset=ISO-8859-1 Hello, I'm getting two different values when I use a timestamp with the date_create() and date() functions: echo date_create('@1361240634')->format('Y-m-d'); // output: 2013-02-19 echo date('Y-m-d',1361240634); // output: 2013-02-18 Is this a known issue? My timezone setting is set to America/Toronto. System time is set to 2013-02-18. Tested with PHP version 5.3.0 and 5.3.21 __ Raymond --0015174c42aa4a933304d60b6ee7--