diff --git a/spec/core/HDateTime.spec.ts b/spec/core/HDateTime.spec.ts index 06260b8..4c91fe3 100644 --- a/spec/core/HDateTime.spec.ts +++ b/spec/core/HDateTime.spec.ts @@ -405,6 +405,10 @@ describe('HDateTime', function (): void { it('returns an empty string for an invalid timezone', function (): void { expect(getTimeZone('FooBar')).toBe('') }) + + it('returns a valid timezone for Antarctica', () => { + expect(getTimeZone('Casey')).toBe('Antarctica/Casey') + }) }) // luxon describe('Intl', function (): void { diff --git a/src/core/HDateTime.ts b/src/core/HDateTime.ts index 6f8bbb0..a3231d8 100644 --- a/src/core/HDateTime.ts +++ b/src/core/HDateTime.ts @@ -36,6 +36,7 @@ export interface PartialHaysonDateTime { const TIMEZONE_PREFIXES = [ 'Africa', 'America', + 'Antarctica', 'Asia', 'Atlantic', 'Australia',