Skip to content

Commit

Permalink
timezone hotfix: don't subtract 1 hour from duration, that was a high…
Browse files Browse the repository at this point in the history
… speed thinko
  • Loading branch information
reivilibre committed Feb 3, 2024
1 parent 0c68190 commit 7d1335c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/penta/PentabarfParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export class PentabarfParser {
const parsedDuration = simpleTimeParse(pEvent.duration);
// HACK FOSDEM2024 +01 TIMEZONE
const startTime = moment(dateTs).add(parsedStartTime.hours - 1, 'hours').add(parsedStartTime.minutes, 'minutes');
const endTime = moment(startTime).add(parsedDuration.hours - 1, 'hours').add(parsedDuration.minutes, 'minutes');
const endTime = moment(startTime).add(parsedDuration.hours, 'hours').add(parsedDuration.minutes, 'minutes');
let talk: IPentabarfTalk = {
pretalxCode: pEvent.attr?.["@_code"],
id: talkId,
Expand Down

0 comments on commit 7d1335c

Please sign in to comment.