On Fri, 6 Apr 2012, Andrey Plotnikov wrote:
so if we extract date as String s = "2010-08-31T07:53:00Z" and, as mentiond above, it will be formatted as set pattern. But since timezone is hardcoded and set to "UTC", the date is treated as 2010-08-31 07:53:00 in UTC timezone.
The Z on the end signifies that it's in UTC, so the above is correct ISO-8601 dates end with either a Z for UTC, or the timezone offset
So, in our (UTC+3) time zone the date will be "2010-08-31T10:53:00Z" and that is not correct.
In GMT+3, you'd write 7.53am GMT as either 07:53:00Z or 10:53:00+03:00 - 10:53:00Z means 10:53am GMT
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
