Avi Flax recently pointed out that (formatter "fmtstr") creates a
formatter in UTC whereas the underlying Joda Time library uses the
default timezone when you do DateTimeFormat.forPattern():

https://github.com/seancorfield/clj-time/issues/8

Given that a two-argument version exists to specify a timezone, so you
can say (formatter "fmtstr" utc) - utc coming from clj-time.core -
he's right that this is probably odd / undesirable... and there's no
easy / obvious way to create a formatter with the default timezone,
without dropping down to the underlying Java.

I'm considering changing (formatter "fmtstr") to mean just
(DateTimeFormat/forPattern "fmtstr") and bumping the version to 0.4.0
since this is potentially a breaking change but I wanted to get a
sense of whether anyone cares / has a strong opinion?
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to