Skip to content

Commit

Permalink
Fix date format in new page clock-in
Browse files Browse the repository at this point in the history
  • Loading branch information
Diviloper committed Nov 20, 2023
1 parent ac9b241 commit 2de7f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion month_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ async function clockInRequest(date, hour, reason) {
function openTabWithRequestFilled(date, hour, reason) {
const url = new URL('https://tempus.upc.edu/RLG/solicitudMarcatges/list');
url.searchParams.append('codiSolicitudMarcatge', reason);
url.searchParams.append('data', date);
url.searchParams.append('data', date.replaceAll('-', '/'));
url.searchParams.append('hora', hour);
window.open(url, '_blank');
return true;
Expand Down

0 comments on commit 2de7f44

Please sign in to comment.