Permalink
Browse files

Add `all-timezone-ids` set

  • Loading branch information...
1 parent 370d09d commit f63223a816f06571cdd1f73cd355d04c30fa32ed @ptaoussanis committed Apr 21, 2014
Showing with 3 additions and 1 deletion.
  1. +1 −0 CHANGELOG.md
  2. +2 −1 src/taoensso/tower.clj
View
@@ -3,6 +3,7 @@
* **CHANGE**: Default :missing translations entry now avoids <>'s (no need for html escaping).
* **CHANGE**: `languages` now returns languages as "localized (unlocalized)" pairs rather than "unlocalized (localized)" pairs.
* **NEW**: `timezones` fn now supports optional timezone-ids arg.
+ * **NEW**: Add `all-timezone-ids` set.
## v2.1.0-RC1 / 2014 Mar 30
View
@@ -246,8 +246,9 @@
;;;; Timezones (doesn't depend on locales)
+(def all-timezone-ids (set (TimeZone/getAvailableIDs)))
(def major-timezone-ids
- (->> (TimeZone/getAvailableIDs)
+ (->> all-timezone-ids
(filterv #(re-find #"^(Africa|America|Asia|Atlantic|Australia|Europe|Indian|Pacific)/.*" %))
(set)))

0 comments on commit f63223a

Please sign in to comment.