aredington/monotony

Periods do not reflect config

aredington opened this issue · 1 comments

The periods returned by monotony do not accurately reflect the TimeZone data of the config. Per #5, a config for New York (U.S. Eastern Time) returns instants that are in UTC. It should be returning instants that reflect the TimeZone data of the config.

After digging in on this, what apparently would be necessary to fix value printing in Clojure would be a discrete type from java.util.Dates, because java.util.Dates do not have TimeZone information associated with them.

It's possible to achieve more human readable times from a seq of periods by (map (partial map str) seq), or on a period by (map str period), but keeping the types monotony works with as data as Dates is important and far more valuable than returning something that prints human readable.