Skip to content

Commit

Permalink
Add timezone support
Browse files Browse the repository at this point in the history
  • Loading branch information
garethj2 committed Feb 8, 2024
1 parent bdd9622 commit 6a9da5a
Show file tree
Hide file tree
Showing 2 changed files with 445 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/core/HDateTime.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,4 +385,15 @@ describe('HDateTime', function (): void {
).toBe('America/New_York')
})
}) // #getIANATimeZone()

describe('.getTimezoneDb()', function (): void {
it('returns the timezone for London', function (): void {
const result = HDateTime.getTimezoneDb().filter('name == "London"')

expect(result.first?.toJSON()).toEqual({
name: 'London',
fullName: 'Europe/London',
})
})
}) // .getTimezoneDb()
})
Loading

0 comments on commit 6a9da5a

Please sign in to comment.