Skip to content

Commit

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

export class DateTime extends Date {

Expand Down
3 changes: 2 additions & 1 deletion src/temporal/utils/temporal.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Temporal, Intl, toTemporalInstant } from '@js-temporal/polyfill'
// 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 a170b71

Please sign in to comment.