Fixed a bug in times and finished its docs. Added mimetypes module and added the uri module to the doc gen. Fixed a bug in the cookies module.
This commit is contained in:
parent
e6019b6f98
commit
d6ae98a652
5 changed files with 542 additions and 8 deletions
|
|
@ -47,7 +47,7 @@ proc setCookie*(key, value: string, expires: TTimeInfo,
|
|||
## **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'"), noname)
|
||||
format(expires, "ddd',' dd MMM yyyy HH:mm:ss 'UTC'"), noname)
|
||||
|
||||
when isMainModule:
|
||||
var tim = TTime(int(getTime()) + 76 * (60 * 60 * 24))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue