Skip to content
Snippets Groups Projects
Commit a8e16d4f authored by Dries Buytaert's avatar Dries Buytaert
Browse files

* Fixes the calendar bug reported by UnConeD.
* The rest of my stuff (administration stuff) isn't ready to be
  commited yet ... :I
parent e23d2f4a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -47,7 +47,7 @@ function display() { ...@@ -47,7 +47,7 @@ function display() {
if ($sday == 0) $output .= " <TR>\n"; if ($sday == 0) $output .= " <TR>\n";
### Print one cell: ### Print one cell:
$date = mktime(0, 0, 0, $month, $nday, $year); $date = mktime(24, 0, 0, $month, $nday, $year);
if ($nday == $day) $output .= " <TD ALIGN=\"center\"><SMALL><B>$nday</B></SMALL></TD>\n"; if ($nday == $day) $output .= " <TD ALIGN=\"center\"><SMALL><B>$nday</B></SMALL></TD>\n";
else if ($date > time()) $output .= " <TD ALIGN=\"center\"><SMALL>$nday</SMALL></TD>\n"; else if ($date > time()) $output .= " <TD ALIGN=\"center\"><SMALL>$nday</SMALL></TD>\n";
else $output .= " <TD ALIGN=\"center\"><SMALL><A HREF=\"$PHP_SELF?date=$date\" STYLE=\"text-decoration: none;\">$nday</A></SMALL></TD>\n"; else $output .= " <TD ALIGN=\"center\"><SMALL><A HREF=\"$PHP_SELF?date=$date\" STYLE=\"text-decoration: none;\">$nday</A></SMALL></TD>\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment