Remove some deprecated procs from std/times (#14129)

This commit is contained in:
Oscar Nihlgård 2020-04-27 14:42:29 +02:00 • committed by GitHub
commit 664cb2c0be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 144 deletions

View file

@ -684,7 +684,7 @@ template uri*(address = "", absolute = true, addScriptName = true): untyped =
proc daysForward*(days: int): DateTime =
## Returns a DateTime object referring to the current time plus ``days``.
return getTime().utc + initInterval(days = days)
return getTime().utc + initTimeInterval(days = days)
template setCookie*(name, value: string, expires="",
sameSite: SameSite=Lax): typed =