Skip to content

Commit

Permalink
Remove unused Temporal imports
Browse files Browse the repository at this point in the history
  • Loading branch information
meduzen committed Apr 19, 2024
1 parent e954705 commit cf2f59c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/temporal/datetime-class.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { MILLISECONDS_PER_WEEK } from './utils/const.js'
import { datetime, weekNumber } from './index.js'
// import { Temporal } from '@js-temporal/polyfill'

export class DateTime extends Date {

Expand Down
1 change: 0 additions & 1 deletion src/temporal/utils/temporal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// import { Temporal, Intl, toTemporalInstant } from '@js-temporal/polyfill'
import { Temporal } from '@js-temporal/polyfill'

export const dateToPlainDate = d => new Temporal.PlainDate(d.getFullYear(), d.getMonth() + 1, d.getDate())

0 comments on commit cf2f59c

Please sign in to comment.