enyojs/enyo-ilib — pull request #71 by ehoogerbeets (2014-05-21 22:22:26+00:00)
Title: Read time zone rules from the system zoneinfo files

This change allows enyo-ilib to load the time zone rules from the binary system zoneinfo file in /usr/share/zoneinfo. This depends on BHV-8308 being fixed first in enyo itself so that binary files can be loaded with the enyo.Ajax class.

This code checks if it is running on webOS, and if it is, requests for the ilib time zone files will be redirected to load the binary zoneinfo file on disk instead, parse it, then return an ilib style json object that contains the rules for the current year.

Also added a unit test runner under node and a bunch of unit tests to verify that the utility classes used to load and parse the binary zoneinfo files work properly.