This topic is locked

Calendar ignores 29.2.2008

11/28/2007 9:27:38 AM
Calendar Template general questions
Pfeiffer author

Hello support,
please remember that some years habe 29 days in month february... and not 28 ...
Best regards

Uwe Pfeiffer

admin 11/28/2007

Uwe,
thank you, will fix this.

C
charly1211 12/1/2007

how can I fix the 29.2.2008 in my project? I have translated some descriptions in German and I don*t want to have that work twice :-).
How can I integrate the calendar template in existing projects?

Pfeiffer author 12/2/2007

how can I fix the 29.2.2008 in my project? I have translated some descriptions in German and I don*t want to have that work twice :-).

How can I integrate the calendar template in existing projects?


Hello :

Search for $mdays[2]=28; and replace it with
// Schaltjahr für Februar berücksichtigen

if (bcmod($_SESSION["yr"],4) == 0)

$mdays[2]=29;

else

$mdays[2]=28;
that's all.
Best regards

Uwe Pfeiffer