|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-01-06 11:59 UTC] derick@php.net
-Status: Open
+Status: Not a bug
[2015-01-06 11:59 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 14:00:01 2026 UTC |
Description: ------------ If you run strftime() on a date in the last week of a year (e.g. 30 December 2014), and the new year begins in the same week, the outputted date is "30 Dec 2015". Test script: --------------- <?php $tmpTime = 1419937605; // 30 Dec 2014 var_dump(strftime('%e %b %G (%a)', $tmpTime)); Expected result: ---------------- string(17) "30 Dec 2014 (Tue)" Actual result: -------------- string(17) "30 Dec 2015 (Tue)"