Keep expire_date as a day
This commit is contained in:
parent
76b9da8bd3
commit
6e8f3ee321
@ -57,7 +57,7 @@ async def create_link(
|
||||
link=link_path,
|
||||
owner=current_user.id,
|
||||
redirect_link=url.url,
|
||||
expire_date=datetime.datetime.utcnow()
|
||||
expire_date=datetime.datetime.today()
|
||||
+ datetime.timedelta(days=30),
|
||||
)
|
||||
db.add(new_link)
|
||||
|
Loading…
x
Reference in New Issue
Block a user