Opened 7 years ago

Last modified 5 years ago

#18324 new defect

timezone.js lazyloading timezones files - backward zone file issue

Reported by: nijher14 Owned by:
Priority: undecided Milestone: 1.15
Component: Dojox Version: 1.10.2
Keywords: Cc:
Blocked By: Blocking:


When using the lazyLoad option to lazily-load the needed timezone files on demand, there seems to be an issue when it comes to loading some of the timezones from the "backward" zone file.

With the lazyLoad option on, by default the code always loads the northamerican timezone file. When it sees it needs a timezone from something other than north america, it will go and grab the needed time zone file. This works fine for the common regions that have been referenced in the regionMap and regionExceptions objects in the timezone.js file. However, for any other timezone that is not included in those objects, the "backward" zone file is loaded which contains "links" to the right time zone rule. This where the problem occurs. The code should then go and additionally grab the needed zone file that corresponds to the needed rule - but this does not happen for some instances. For example, when trying to use the timezones UCT or UTC the needed zone file - etcetera - is never loaded.

If I use the preloadAll option, all the zone files are already loaded and the UCT timezone is perfectly understood.

I am currently using the preLoadAll option, but would like to use the lazyLoad option as its important for performance on load and also reduces the file footprint.

Change History (2)

comment:1 Changed 6 years ago by dylan

Milestone: tbd1.12

comment:2 Changed 5 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.