A month ago, I have posted about my World Clock widgets. However, I have found out that there is a bug on the implementation especially on the cookie part where the timezone and offset information is saved into a cookie. Due to changes in timezone especially in DST, saved offsets from cookie may become outdated for some day in a year, thus the fix.
The fix
The fix was simple, no timezone offset information is ever saved into the cookie. All timezone offset will be derived from the data provided by the timezone list JSON object. This object is refreshed everyday. This will decrease the probability of serving incorrect timezone offset. With that being said, there is still a chance that incorrect offsets are being served but that is minimal and will still updated correctly when refreshed after few hours.
Visit the World Clock page now.
Note: Previously defined timezones will be deleted due to changes in cookie structure.
Enjoy and share.