Skip to content

Commit

Permalink
timezones suck and I can't be assed
Browse files Browse the repository at this point in the history
  • Loading branch information
amykapernick committed Mar 5, 2024
1 parent 4ddcdf7 commit 28eb044
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
9 changes: 0 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"@sentry/nextjs": "^7.100.1",
"calendar-link": "^2.6.0",
"date-fns": "^3.3.1",
"date-fns-tz": "^2.0.0",
"fathom-client": "^3.6.0",
"next": "^14.1.0",
"notion-to-md": "^3.1.1",
Expand Down
6 changes: 3 additions & 3 deletions src/components/parts/runsheet/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RunsheetEvent, Stakeholder } from "@ts/runsheet"
import styles from './styles.module.css'
import { format } from "date-fns-tz"
import { format, add } from "date-fns"
import Calendar from '@img/icons/calendar.svg'
import { ics } from "calendar-link"
import FrameTop from '@img/frame_top.png'
Expand Down Expand Up @@ -58,8 +58,8 @@ const Runsheet = (props: RunsheetProps) =>
<tbody>
{events.map((event: RunsheetEvent) => (
<tr key={event.name}>
<td>{format(event.start, 'h:mm aaa', { timeZone: 'Australia/Perth' })}</td>
<td>{event?.end && format(event.end, 'hh:mm aaa', { timeZone: 'Australia/Perth' })}</td>
<td>{format(add(event.start, { hours: 8 }), 'h:mm aaa')}</td>
<td>{event?.end && format(add(event.end, { hours: 8 }), 'hh:mm aaa')}</td>
<td>{event.name}</td>
<td><small>{event?.notes}</small></td>
<td className="no-print">
Expand Down

0 comments on commit 28eb044

Please sign in to comment.