File tree 1 file changed +4
-4
lines changed
packages/utils/src/datetime
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import { DateTime as LuxonDatetime , Info } from 'luxon'
1
+ import { Info , DateTime as LuxonDatetime } from 'luxon'
2
2
import { DateObject } from './date-object'
3
3
import { Duration } from './duration'
4
- import { StringUnitLength } from './string-unit-length'
5
4
import { InfoOptions } from './info-options'
5
+ import { StringUnitLength } from './string-unit-length'
6
6
7
7
export interface DatetimeOptions {
8
8
isLocal : boolean
@@ -114,7 +114,7 @@ export class Datetime {
114
114
}
115
115
116
116
get daysInMonth ( ) : number {
117
- return this . _value . daysInMonth
117
+ return this . _value . daysInMonth !
118
118
}
119
119
120
120
get year ( ) : number {
@@ -173,7 +173,7 @@ export class Datetime {
173
173
174
174
difference ( datetime : Datetime ) : Duration {
175
175
const iso8601 = this . _value . diff ( datetime . _value ) . toISO ( )
176
- return Duration . fromIso ( iso8601 )
176
+ return Duration . fromIso ( iso8601 ! )
177
177
}
178
178
179
179
toIso ( ) {
You can’t perform that action at this time.
0 commit comments