#37625 [Opn->Bgs]: strftime()/gmstrftime() error
| From: | tony2001@php.net | Date: | Mon, 29 May 2006 11:14:33 +0000 |
| Subject: | #37625 [Opn->Bgs]: strftime()/gmstrftime() error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-97739@lists.php.net to get a copy of this message | ||
ID: 37625
Updated by: tony2001@php.net
Reported By: webmaster at keenan dot dk
-Status: Open
+Status: Bogus
-Bug Type: *Calendar problems
+Bug Type: Date/time related
Operating System: Linux
PHP Version: 4.4.2
New Comment:
%G - The 4-digit year corresponding to the ISO week number (see %V).
This has the same format and value as %Y, except that if the ISO week
number belongs to the previous or next year, that year is used
instead.
http://php.net/strftime
Previous Comments:
------------------------------------------------------------------------
[2006-05-29 10:53:01] webmaster at keenan dot dk
Description:
------------
the function strftime() outputs the wrong year
when the timestamp is from january 1st 2006.
Reproduce code:
---------------
setlocal("LC_TIME","da_DK");
$dstr = strftime("%A den %e. %B %G",mktime(20,0,0,1,1,2006));
echo $dstr;
Expected result:
----------------
søndag den 1. januar 2006
Actual result:
--------------
søndag den 1. januar 2005
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37625&edit=1