Author: dkatayev
Date: 2010-08-10 04:49:05 -0400 (Tue, 10 Aug 2010)
New Revision: 2904
Modified:
jcr/trunk/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/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java
===================================================================
---
jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java 2010-08-09
11:47:15 UTC (rev 2903)
+++
jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/ext/TestCaching.java 2010-08-10
08:49:05 UTC (rev 2904)
@@ -64,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);
@@ -83,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);