> Is there a way to insulate the logic from the tz difference?
> For now, it's only a unit test that fails due to different conversion of
> a String into a DateTime using: DATETIME_FORMATTER.parseDateTime(...);
You can set the time zone on the formatter explicitly using withZone():
DateTimeFormat.forPattern("yyyyMMddHHmmss").withZone(DateTimeZone.UTC).parseDateTime("20001212050505");
- Adam
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest