ID: 37625 Updated by: [EMAIL PROTECTED] 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
