Author: dkatayev
Date: 2010-08-10 05:19:54 -0400 (Tue, 10 Aug 2010)
New Revision: 2905
Modified:
jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java
Log:
EXOJCR-882 If-Modified-Since header locale forced to US according to HTTP-Date
specification
Modified:
jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java
===================================================================
---
jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java 2010-08-10
08:49:05 UTC (rev 2904)
+++
jcr/branches/1.12.x/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java 2010-08-10
09:19:54 UTC (rev 2905)
@@ -32,6 +32,7 @@
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
+import java.util.Locale;
import javax.jcr.Node;
import javax.jcr.Property;
@@ -63,7 +64,7 @@
Node contentNode = node.getNode("jcr:content");
Property lastModifiedProperty =
contentNode.getProperty("jcr:lastModified");
- SimpleDateFormat dateFormat = new
SimpleDateFormat(WebDavConst.DateFormat.IF_MODIFIED_SINCE_PATTERN);
+ SimpleDateFormat dateFormat = new
SimpleDateFormat(WebDavConst.DateFormat.IF_MODIFIED_SINCE_PATTERN, Locale.US);
Calendar lastModifiedDate = lastModifiedProperty.getDate();
lastModifiedDate.roll(Calendar.SECOND, -10);
@@ -82,7 +83,7 @@
Node contentNode = node.getNode("jcr:content");
Property lastModifiedProperty =
contentNode.getProperty("jcr:lastModified");
- SimpleDateFormat dateFormat = new
SimpleDateFormat(WebDavConst.DateFormat.IF_MODIFIED_SINCE_PATTERN);
+ SimpleDateFormat dateFormat = new
SimpleDateFormat(WebDavConst.DateFormat.IF_MODIFIED_SINCE_PATTERN, Locale.US);
Calendar lastModifiedDate = lastModifiedProperty.getDate();
lastModifiedDate.add(Calendar.WEEK_OF_MONTH, 1);
Show replies by date