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:
dom96 2012-05-13 14:38:59 +01:00
commit d6ae98a652
5 changed files with 542 additions and 8 deletions

View file

@ -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))