taoensso / tower

i18n & L10n library for Clojure/Script
https://www.taoensso.com/tower
Eclipse Public License 1.0
278 stars 24 forks source link

Formatting time and timezone #72

Closed danielbraun closed 7 years ago

danielbraun commented 8 years ago

Hey, How do you format a date time according to a certain timezone? Timezones are always printed as the JVM default timezone:

Example: (tower/fmt :en (java.util.Date.) :dt-long) => "April 18, 2016 10:48:45 AM PDT"

What if I wanted to print the date according to the user's timezone? I've been digging around the codebase and couldn't find the answer.