diff --git a/src/main/java/com/metaweb/gridworks/util/ParsingUtilities.java b/src/main/java/com/metaweb/gridworks/util/ParsingUtilities.java index 7754de196..990ae7e90 100644 --- a/src/main/java/com/metaweb/gridworks/util/ParsingUtilities.java +++ b/src/main/java/com/metaweb/gridworks/util/ParsingUtilities.java @@ -17,7 +17,7 @@ import org.json.JSONObject; import org.json.JSONTokener; public class ParsingUtilities { - static public SimpleDateFormat s_sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); + static public SimpleDateFormat s_sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); static public String inputStreamToString(InputStream is) throws IOException { Reader reader = new InputStreamReader(is, "UTF-8"); diff --git a/src/main/webapp/scripts/index.js b/src/main/webapp/scripts/index.js index 108662116..b80e31e27 100644 --- a/src/main/webapp/scripts/index.js +++ b/src/main/webapp/scripts/index.js @@ -33,7 +33,7 @@ function renderProjects(data) { if (data.projects.hasOwnProperty(n)) { var project = data.projects[n]; project.id = n; - project.date = new Date(project.modified); + project.date = Date.parseExact(project.modified, "yyyy-MM-ddTHH:mm:ssZ"); projects.push(project); } } diff --git a/src/main/webapp/scripts/project/browsing-engine.js b/src/main/webapp/scripts/project/browsing-engine.js index c657d763a..5ef5078d0 100644 --- a/src/main/webapp/scripts/project/browsing-engine.js +++ b/src/main/webapp/scripts/project/browsing-engine.js @@ -110,7 +110,7 @@ BrowsingEngine.prototype.removeFacet = function(facet) { for (var i = this._facets.length - 1;i >= 0; i--) { if (this._facets[i].facet === facet) { this._facets[i].elmt.remove(); - this._facets.splice(i, 1);console.log("removed"); + this._facets.splice(i, 1); break; } }