• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed toGMTString() possibly should be replaced with toUTCString()

rellect

Well-known member
#1
Nothing serious here, but thought to note about it.
toGMTString() is used in the setCookie() function in xenforo.js.
toGMTString() is deprecated, and toUTCString() should be used instead.
 

rainmotorsports

Well-known member
#4
Oops missed it was a JavaScript function. Still a different avenue of consideration. Just needs to fall in line with current browsers supported. Which it should.
 

Chris D

XenForo developer
Staff member
#5
I did a bit of testing with this and it seems like a worthwhile change.

Interestingly, XenForo itself doesn't use setCookie with an expiry date anywhere; only session cookies are set with that method in the core.