Merge pull request #5720 from FedericoCeratto/patch-27
Fix cookie timestamp format #5718
This commit is contained in:
commit
afb7542d20
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ proc setCookie*(key, value: string, expires: TimeInfo,
|
|||
##
|
||||
## **Note:** UTC is assumed as the timezone for ``expires``.
|
||||
return setCookie(key, value, domain, path,
|
||||
format(expires, "ddd',' dd MMM yyyy HH:mm:ss 'UTC'"),
|
||||
format(expires, "ddd',' dd MMM yyyy HH:mm:ss 'GMT'"),
|
||||
noname, secure, httpOnly)
|
||||
|
||||
when isMainModule:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue