The format string "zzz" is requesting a print of the short time zone name. On Linux, you must have a default time zone set differently to Windows, such that the output is +00:00 rather than GMT (which comes from Europe/London time-zone) Stephen
On 7 April 2010 10:15, Haskins, Christopher (UK) <christopher.hask...@baesystems.com> wrote: > Hi, > > > > I have an odd issue in that I am working on an issue that results in the > offset time being output twice when using the following code on a linux box. > However when run on a windows machine the out put is as expected: > > > > Date.toString() = 2008-12-03T09:30:00.000z > > > > DateTimeFormatter formatter = DateTimeFormatter.forPattern(“dd MMM YYYY, > HH:mm ZZ zzz”); > > Formatter.print(date.toDateTime()); > > > > Output when run on Linux: 03 Dec 2008, 09:30 +00:00 +00:00 > > Output when run on Windows: 03 Dec 2008, 09:30 +00:00 GMT > > > > Does anyone know how to correct this for a linux environment? > > > > Regards, > > > > Chris Haskins > > > > > > ******************************************************************** > This email and any attachments are confidential to the intended > recipient and may also be privileged. If you are not the intended > recipient please delete it from your system and notify the sender. > You should not copy it or use it for any purpose nor disclose or > distribute its contents to any other person. > ******************************************************************** > > > ------------------------------------------------------------------------------ > 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 > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > > ------------------------------------------------------------------------------ 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 Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest