From 9d68ce64823475feb0cff0081393576933342909 Mon Sep 17 00:00:00 2001 From: thedhanawada Date: Fri, 20 Mar 2026 11:51:21 +0000 Subject: [PATCH] Fix parseTimezone() referencing non-existent database.abbreviations The parseTimezone() method referenced this.database.abbreviations, but TimezoneDatabase uses this.aliases. This caused timezone abbreviation lookups (EST, PST, CET, etc.) to silently fail. Fixes #107 --- core/timezone/TimezoneManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/timezone/TimezoneManager.js b/core/timezone/TimezoneManager.js index 0c56f65..6830a52 100644 --- a/core/timezone/TimezoneManager.js +++ b/core/timezone/TimezoneManager.js @@ -366,10 +366,10 @@ export class TimezoneManager { // Check abbreviations const upperTz = tzString.toUpperCase(); if ( - this.database.abbreviations && - Object.prototype.hasOwnProperty.call(this.database.abbreviations, upperTz) + this.database.aliases && + Object.prototype.hasOwnProperty.call(this.database.aliases, upperTz) ) { - return this.database.abbreviations[upperTz]; + return this.database.aliases[upperTz]; } // Try to parse offset format (e.g., "+05:30", "-08:00")