Skip to content

Commit

Permalink
fix: import utc for dayjs timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
mplewis committed Oct 8, 2024
1 parent 5028cc1 commit e1474ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/services/events/ogImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import chromium from '@sparticuz/chromium'
import dayjs from 'dayjs'
import advancedFormat from 'dayjs/plugin/advancedFormat'
import timezone from 'dayjs/plugin/timezone'
import utc from 'dayjs/plugin/utc'
import Handlebars from 'handlebars'
import puppeteer from 'puppeteer-core'

import { markdownToText } from 'src/lib/markdown'

dayjs.extend(advancedFormat)
dayjs.extend(timezone)
dayjs.extend(utc)

const ogImageSize = { width: 1200, height: 630 }

Expand Down

0 comments on commit e1474ef

Please sign in to comment.