ID: 19847 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Bogus +Status: Feedback Bug Type: Date/time related Operating System: BSD PHP Version: 4.2.3 New Comment:
sorry, reopening. Can anybody else on BSD verify this? Which BSD version do you exactly have? Derick Previous Comments: ------------------------------------------------------------------------ [2002-10-10 11:39:08] [EMAIL PROTECTED] and what is this derick? ------------------------------------------------------------------------ [2002-10-10 10:58:17] [EMAIL PROTECTED] Hi, On a rh7.3 with php 4.1.2 ( from rpm ) the result of the script is ok : 11 Fri : Sexta-Feira 12 Sat : S�bado 13 Sun : Domingo 14 Mon : Segunda-Feira 15 Tue : Ter�a-Feira 16 Wed : Quarta-Feira Patrick ------------------------------------------------------------------------ [2002-10-10 09:35:02] [EMAIL PROTECTED] We are happy to tell you that you just discovered Daylight Savings Time. For more information see: http://webexhibits.org/daylightsaving/b.html ------------------------------------------------------------------------ [2002-10-10 09:13:10] [EMAIL PROTECTED] I have same code: <? function dia_semana($dia, $mes, $ano) { $dia_semana = date("D", mktime(0,0,0,$mes,$dia,$ano)); switch($dia_semana) { case "Sun": return "Domingo"; break; case "Mon": return "Segunda-Feira"; break; case "Tue": return "Ter�a-Feira"; break; case "Wed": return "Quarta-Feira"; break; case "Thu": return "Quinta-Feira"; break; case "Fri": return "Sexta-Feira"; break; case "Sat": return "S�bado"; break; default: die("Erro com dia da semana ".$dia_semana); } } $mes = 10; //month $ano = 2002; //year if($mes==2) $dias_mes = 28; else if($mes==4||$mes==6||$mes==9||$mes==11) $dias_mes = 30; else $dias_mes = 31; $i=1; while($i<=$dias_mes) { if($i==13) echo "<b style='color:red'>"; echo $i." ".date("D", mktime(0,0,0,$mes,$i,$ano)) . " : "; echo $dia_semana = dia_semana($i, $mes, $ano) . "<br>"; if($i==13) echo "</b>"; $i++; } ?> output is: ... 11 Fri : Sexta-Feira 12 Sat : S�bado 13 Wed : Quarta-Feira 14 Mon : Segunda-Feira 15 Tue : Ter�a-Feira ... can see a exmple in http://www.suldigital.com.br/davis/rodcat/teste.php ------------------------------------------------------------------------ [2002-10-10 08:58:39] [EMAIL PROTECTED] First of all: Give us a fully working and complete script which can be easily copy pasted..I tried with similar script and it works fine here. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/19847 -- Edit this bug report at http://bugs.php.net/?id=19847&edit=1
