Fixed parsing of dates to include timezone according to iso8601 format
authorChristos Stathis <chstath@ebs.gr>
Mon, 26 Sep 2011 09:43:44 +0000 (12:43 +0300)
committerChristos Stathis <chstath@ebs.gr>
Mon, 26 Sep 2011 09:43:44 +0000 (12:43 +0300)
src/gr/grnet/pithos/web/client/foldertree/Resource.java

index 4800517..c1bcd48 100644 (file)
@@ -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;
     }