Skip to content

Commit

Permalink
fix wrong day display
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed Sep 19, 2024
1 parent 52c935e commit 1f03add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ephios/static/ephios/js/event_copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const {createApp, ref, computed} = Vue

function formatDate(date_obj, sep = "-") {
let month = date_obj.getMonth() + 1;
let day = date_obj.getDate() + 1;
let day = date_obj.getDate();
return date_obj.getFullYear() + sep + (month < 10 ? "0" : "") + month + sep + (day < 10 ? "0" : "") + day
}

Expand Down

0 comments on commit 1f03add

Please sign in to comment.