Skip to content

Commit 7d1335c

Browse files
committed
timezone hotfix: don't subtract 1 hour from duration, that was a high speed thinko
1 parent 0c68190 commit 7d1335c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backends/penta/PentabarfParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class PentabarfParser {
240240
const parsedDuration = simpleTimeParse(pEvent.duration);
241241
// HACK FOSDEM2024 +01 TIMEZONE
242242
const startTime = moment(dateTs).add(parsedStartTime.hours - 1, 'hours').add(parsedStartTime.minutes, 'minutes');
243-
const endTime = moment(startTime).add(parsedDuration.hours - 1, 'hours').add(parsedDuration.minutes, 'minutes');
243+
const endTime = moment(startTime).add(parsedDuration.hours, 'hours').add(parsedDuration.minutes, 'minutes');
244244
let talk: IPentabarfTalk = {
245245
pretalxCode: pEvent.attr?.["@_code"],
246246
id: talkId,

0 commit comments

Comments
 (0)