Browse Source

fix date format for PDF awards (some PDF readers require e.g. 25-Oct-2019)

master
Fabian Kurz 2 years ago
parent
commit
9ee1da504a
  1. 2
      api.php

2
api.php

@ -390,7 +390,7 @@
header("Content-type: application/pdf");
header("Content-Disposition: attachment; filename=\"$callsign-$type.pdf\"");
echo create_award ($callsign, $_SESSION['id'], $type, $score, date("Y-m-d"));
echo create_award ($callsign, $_SESSION['id'], $type, $score, date("d-M-Y"));
}
else {
echo "wrong type or callsign";

Loading…
Cancel
Save