Here are the list of functions to get data that I use.
$tiempo_actual = time();
$mes = date("n", $tiempo_actual);
$ano = date("Y", $tiempo_actual);
$dia=date("d");
I dont think that is the problem because the first time that the calendar it's loaded it get the date correctly and display it... the problem is when I try to advance to another month it send has to increase the date wich is stored in this variables:
trough this code:
//here I make a link to go to the previous month and generate the link to go to it
$mes_anterior = $mes-1;
$ano_anterior = $ano;
if ($mes_anterior==0){
$ano_anterior = $ano_anterior-1;
$mes_anterior=12;
}
echo "<a style=color:white;text-decoration:none href=index2.php?dia=1&nvo_mes=$mes_anterior&nvo_ano=$ano_anterior><<</a></td>";
echo "<td align=center class=tit>$nombre_mes $ano</td>";
echo "<td align=right style=font-size:10pt;font-weight:bold;color:white>";
//here I make a link to go to the next month and generate the link to go to it
$mes_siguiente = $mes+1;
$ano_siguiente = $ano;
if ($mes_siguiente==13){
$ano_siguiente = $ano_siguiente+1;
$mes_siguiente=1;
}
echo "<a style=color:white;text-decoration:none href=index2.php?dia=1&nvo_mes=$mes_siguiente&nvo_ano=$ano_siguiente>>></a></td></tr></table></td></tr>";
the problem it's when I press this generated links in linux, in windows works fine a take me to the previous or next month but in linux It has the problems that I told you in the problem description.