Skip to content

Commit

Permalink
fix incorrect calendar times
Browse files Browse the repository at this point in the history
  • Loading branch information
mart2070 committed Sep 3, 2024
1 parent cd55341 commit a117542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tdx-enhanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
let calendars = document.querySelectorAll("#txtStartDate, #txtEndDate") //tasks for now, will add more as found
if (calendars) {
let originalFormat = "M/D/YYYY h:mm A";
let newFormat = "YYYY-MM-DDThh:mm";
let newFormat = "YYYY-MM-DDTHH:mm";
[...calendars].forEach(calendar=>{
let date = moment(calendar.value,originalFormat)
let iso = date.format(newFormat)
Expand Down

0 comments on commit a117542

Please sign in to comment.