note 40571 deleted from function.mktime by derick

From: Date: Sun, 24 Sep 2006 12:06:08 +0000
Subject: note 40571 deleted from function.mktime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-117527@lists.php.net to get a copy of this message
Note Submitter: ed_isthmus at NOSPAMyahoo dot com ---- Further to a point iain made earlier, about problems with daylight savings time: <?php $timestamp = mktime(0, 0, 0, 3, 28, 2004); echo date('d M Y H:i:s', $timestamp); ?> Will output '27 Mar 2004 23:00:00' (in the UK)! Best solution for me was to specify the dst argument: <?php $timestamp = mktime(0, 0, 0, 3, 28, 2004, 0); ?> Alternatively, you could use gmmktime(); and/or check the timezone offset.

« previous php.notes (#117527) next »