Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
q9f committed Sep 6, 2023
1 parent d86ae64 commit 5e9d7e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/23/events/_example/index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ date = "2023-06-09"
days = 3

# the event times (shows up in the event card)
times = "09:00 - 20:00"
times = "09:00-20:00"

# Link to venues from the Places table - use this OR enter venueName, venueUrl and venueAddress
# venues = ["gabriel-loci"]
Expand Down
2 changes: 1 addition & 1 deletion data/23/events/protocol/index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ date = "2023-09-15"
days = 1

# the event times (shows up in the event card)
times = "08:00 - 21:00"
times = "08:00-21:00"

# Link to venues from the Places table - use this OR enter venueName, venueUrl and venueAddress
venues = ["magazin"]
Expand Down
File renamed without changes
4 changes: 2 additions & 2 deletions utils/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ class DeConf_Collection {
continue;
}
const [sstart, send] = sg.times.split("-");
sg.startTime = (new Date(`${sg.date}T${sstart}`)).toISOString();
sg.startTime = (new Date(`${sg.date}T${sstart.trim()}`)).toISOString();
const endDate = send <= sstart
? format(addDays(new Date(sg.date), 1), "yyyy-MM-dd")
: sg.date;
sg.endTime = (new Date(`${endDate}T${send}`)).toISOString();
sg.endTime = (new Date(`${endDate}T${send.trim()}`)).toISOString();
}
}
if (
Expand Down

0 comments on commit 5e9d7e3

Please sign in to comment.