Skip to content

Commit

Permalink
HACK Timezone hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Feb 3, 2024
1 parent b7b60ea commit 43dbdff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Linting and Tests
on:
push:
branches: ["main"]
branches: ["main", "rei/fosdem2024_fire"]
pull_request:

jobs:
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
env:
# Only push if this is develop, otherwise we just want to build
# On a PR github.ref is the target branch, so don't push for that either
PUSH: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
PUSH: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/rei/fosdem2024_fire') && github.event_name != 'pull_request' }}

steps:
- name: Check out
Expand All @@ -55,5 +55,5 @@ jobs:
platforms: ${{ env.PLATFORMS }}
push: ${{ env.PUSH }}
tags: |
ghcr.io/matrix-org/conference-bot:latest
#ghcr.io/matrix-org/conference-bot:latest
ghcr.io/matrix-org/conference-bot:${{ github.sha }}
5 changes: 3 additions & 2 deletions src/backends/penta/PentabarfParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,9 @@ export class PentabarfParser {

const parsedStartTime = simpleTimeParse(pEvent.start);
const parsedDuration = simpleTimeParse(pEvent.duration);
const startTime = moment(dateTs).add(parsedStartTime.hours, 'hours').add(parsedStartTime.minutes, 'minutes');
const endTime = moment(startTime).add(parsedDuration.hours, 'hours').add(parsedDuration.minutes, 'minutes');
// 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');
let talk: IPentabarfTalk = {
pretalxCode: pEvent.attr?.["@_code"],
id: talkId,
Expand Down

0 comments on commit 43dbdff

Please sign in to comment.