Last-Modified is at last in iso 8601 format
authorChristos Stathis <chstath@ebs.gr>
Wed, 28 Sep 2011 13:37:25 +0000 (16:37 +0300)
committerChristos Stathis <chstath@ebs.gr>
Wed, 28 Sep 2011 13:37:25 +0000 (16:37 +0300)
src/gr/grnet/pithos/web/client/foldertree/Resource.java

index c1bcd48..e424719 100644 (file)
@@ -37,6 +37,7 @@ package gr.grnet.pithos.web.client.foldertree;
 
 import com.google.gwt.http.client.Response;
 import com.google.gwt.i18n.client.DateTimeFormat;
+import com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat;
 import com.google.gwt.json.client.JSONNumber;
 import com.google.gwt.json.client.JSONObject;
 import com.google.gwt.json.client.JSONString;
@@ -83,7 +84,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:ssZZZ").parse(s.stringValue());
+                return DateTimeFormat.getFormat(PredefinedFormat.ISO_8601).parse(s.stringValue());
         }
         return null;
     }