Bug #15060 Updated: include behaviour
| From: | eschmid@php.net | Date: | Wed, 16 Jan 2002 15:24:28 +0000 |
| Subject: | Bug #15060 Updated: include behaviour | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77255@lists.php.net to get a copy of this message | ||
ID: 15060
Updated by: eschmid
Reported By: joachim.furrer@web.de
Old Status: Open
Status: Closed
Bug Type: Date/time related
Operating System: im guessing, all
PHP Version: 4.0.6
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-01-16 10:07:31] joachim.furrer@web.de
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] hholzgra@php.net
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] mfischer@php.net
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] joachim.furrer@web.de
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