From: Christos Stathis Date: Mon, 26 Sep 2011 09:43:44 +0000 (+0300) Subject: Fixed parsing of dates to include timezone according to iso8601 format X-Git-Tag: v0.1~133 X-Git-Url: https://code.grnet.gr/git/pithos-web-client/commitdiff_plain/9e4eef08f4fc018e53f104eb811cfc8836bae91f?ds=sidebyside Fixed parsing of dates to include timezone according to iso8601 format --- diff --git a/src/gr/grnet/pithos/web/client/foldertree/Resource.java b/src/gr/grnet/pithos/web/client/foldertree/Resource.java index 4800517..c1bcd48 100644 --- a/src/gr/grnet/pithos/web/client/foldertree/Resource.java +++ b/src/gr/grnet/pithos/web/client/foldertree/Resource.java @@ -83,7 +83,7 @@ public abstract class Resource { if(obj.get(key) != null) { JSONString s = obj.get(key).isString(); if (s != null) - return DateTimeFormat.getFormat("yyyy-MM-dd'T'HH:mm:ss").parse(s.stringValue()); + return DateTimeFormat.getFormat("yyyy-MM-dd'T'HH:mm:ssZZZ").parse(s.stringValue()); } return null; }