Created
September 29, 2024 11:00
-
-
Save ludndev/46007ba69e0ae3ead5f18fc8be8a2d79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check if token exists and is valid, return RPC with bool and user_id | |
query = r""" | |
select NOW() as n_direct, NOW() AT TIME ZONE 'UTC' as n_utc; | |
""" | |
cur.execute(query, (hashed_token,)) | |
result = cur.fetchone() | |
cur.close() | |
print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this
NOW() AT TIME ZONE 'UTC'
is actually working and returning expected value.