Revert "fix: tz not working"

This reverts commit 4c31c891fd.
This commit is contained in:
Mylloon 2023-12-24 18:40:35 +01:00
parent 4c31c891fd
commit 852a30229d
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -85,9 +85,7 @@ def exist_post(file_id: int) -> float | None:
def time_now() -> float: def time_now() -> float:
"""get current time with timezone awareness""" """get current time with timezone awareness"""
return ( return datetime.now(timezone(session[Config._session_timezone])).timestamp()
timezone(session[Config._session_timezone]).localize(datetime.now()).timestamp()
)
def create_post(file_id: int, content: str) -> bool: def create_post(file_id: int, content: str) -> bool: