Remove some deprecated procs from std/times (#14129)
This commit is contained in:
parent
b8d7a98265
commit
664cb2c0be
2 changed files with 32 additions and 144 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue