shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kao...@apache.org
Subject svn commit: r959530 - /incubator/shiro/branches/shiro-root-1.0.x/web/src/main/java/org/apache/shiro/web/servlet/SimpleCookie.java
Date Thu, 01 Jul 2010 06:23:59 GMT
Author: kaosko
Date: Thu Jul  1 06:23:59 2010
New Revision: 959530

URL: http://svn.apache.org/viewvc?rev=959530&view=rev
Log:
FIXED - SHIRO-177: Wron SimpleCookie expires locale 
https://issues.apache.org/jira/browse/SHIRO-177
- Explicitly set dateformat to use US locale

Modified:
    incubator/shiro/branches/shiro-root-1.0.x/web/src/main/java/org/apache/shiro/web/servlet/SimpleCookie.java

Modified: incubator/shiro/branches/shiro-root-1.0.x/web/src/main/java/org/apache/shiro/web/servlet/SimpleCookie.java
URL: http://svn.apache.org/viewvc/incubator/shiro/branches/shiro-root-1.0.x/web/src/main/java/org/apache/shiro/web/servlet/SimpleCookie.java?rev=959530&r1=959529&r2=959530&view=diff
==============================================================================
--- incubator/shiro/branches/shiro-root-1.0.x/web/src/main/java/org/apache/shiro/web/servlet/SimpleCookie.java
(original)
+++ incubator/shiro/branches/shiro-root-1.0.x/web/src/main/java/org/apache/shiro/web/servlet/SimpleCookie.java
Thu Jul  1 06:23:59 2010
@@ -327,7 +327,7 @@ public class SimpleCookie implements Coo
      */
     private static String toCookieDate(Date date) {
         TimeZone tz = TimeZone.getTimeZone(GMT_TIME_ZONE_ID);
-        DateFormat fmt = new SimpleDateFormat(COOKIE_DATE_FORMAT_STRING);
+        DateFormat fmt = new SimpleDateFormat(COOKIE_DATE_FORMAT_STRING, Locale.US);
         fmt.setTimeZone(tz);
         return fmt.format(date);
     }



Mime
View raw message