mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
Switched to keeping time with UTC for easier timezones
Removed useless JS
This commit is contained in:
parent
56c82513ba
commit
b5bc0ec50c
5 changed files with 21 additions and 27 deletions
|
@ -100,7 +100,7 @@ def register():
|
|||
register_user = db.Users(username=username,
|
||||
email=email,
|
||||
password=generate_password_hash(password),
|
||||
created_at=dt.now())
|
||||
created_at=dt.utcnow())
|
||||
db_session.add(register_user)
|
||||
db_session.commit()
|
||||
except exc.IntegrityError:
|
||||
|
@ -148,7 +148,7 @@ def login():
|
|||
ip_address=request.remote_addr,
|
||||
user_agent=request.user_agent.string,
|
||||
active=True,
|
||||
created_at=dt.now())
|
||||
created_at=dt.utcnow())
|
||||
|
||||
db_session.add(session_query)
|
||||
db_session.commit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue