ID: 15060 Updated by: hholzgra Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Bogus Bug Type: Date/time related Operating System: im guessing, all PHP Version: 4.0.6 New Comment:
"%W - week number of the current year as a decimal number, starting with the first Monday as the first day of the first week" January 1st 2001 was a Monday January 1st 2002 was a Tuesday, first Monday in 2002 was January 7th so the days before January 7th are in week 0 as defined and *please* write english! Previous Comments: ------------------------------------------------------------------------ [2002-01-16 10:24:28] [EMAIL PROTECTED] Please make a new bug report, if you can´t figure out the difference between the different formatting strings. IMHO it is not a bug, so read the "how to report a bug that someone will want to help fix" at http://bugs.php.net/. Please make your new bug report in English. ------------------------------------------------------------------------ [2002-01-16 10:07:31] [EMAIL PROTECTED] Es ist nicht wirklich ein Problem, denn man kann den Bug mit einem "kleinen" PHP-Script umgehen. Der Fehler tritt bei der Windows wie auch bei der Linux Version (4.0.6 getestet) auf und macht sich wie folgt bemerkbar: $Woche = strftime ("%W", mktime(0,0,0, date("m"), date("d"), date("Y"))); echo ($Woche); Dieses Script sollte eigentlich die aktuelle Woche im Jahr zurückgeben. Aber seit diesem Jahr beginnt das Ding mit 0 und nicht mit 1 (eben eine Woche hinterher). Gruss Joachim ------------------------------------------------------------------------ [2002-01-16 07:18:00] [EMAIL PROTECTED] seems we have found another bad implementation of strftime() :( setting to feedback as i'm waiting for further info ... ------------------------------------------------------------------------ [2002-01-15 18:31:55] [EMAIL PROTECTED] Keine Ahnung was du uns sagen willst. 1) English 2) Search the bug database for duplicates/solutions first 3) Be more descriptive 4) Provide/Paste a reproduceable self-contained script ------------------------------------------------------------------------ [2002-01-15 18:18:27] [EMAIL PROTECTED] Das Problem ist bei der Ausgabe der Wochenformatierung des Timestamps, dass ab diesem Jahr die Formatierung eine Woche hinterherhinkt---> beginn ist bei 0 und nicht bei 1. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15060&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]