File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ var Cookie = {
248
248
if ( cookieLifeTime ) {
249
249
var date = new Date ( ) ;
250
250
date . setTime ( date . getTime ( ) + ( cookieLifeTime * 1000 ) ) ;
251
- expires = '; expires=' + date . toGMTString ( ) ;
251
+ expires = '; expires=' + date . toUTCString ( ) ;
252
252
}
253
253
var urlPath = '/' + BASE_URL . split ( '/' ) . slice ( 3 ) . join ( '/' ) ; // Get relative path
254
254
document . cookie = escape ( cookieName ) + "=" + escape ( cookieValue ) + expires + "; path=" + urlPath ;
Original file line number Diff line number Diff line change 78
78
secure = options . secure ;
79
79
80
80
document . cookie = name + '=' + encodeURIComponent ( value ) +
81
- ( expires ? '; expires=' + expires . toGMTString ( ) : '' ) +
81
+ ( expires ? '; expires=' + expires . toUTCString ( ) : '' ) +
82
82
( path ? '; path=' + path : '' ) +
83
83
( domain ? '; domain=' + domain : '' ) +
84
84
( secure ? '; secure' : '' ) ;
You can’t perform that action at this time.
0 commit comments