This commit is contained in:
parent
ea3655c9e7
commit
4c31c891fd
1 changed files with 3 additions and 1 deletions
|
@ -85,7 +85,9 @@ 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 datetime.now(timezone(session[Config._session_timezone])).timestamp()
|
return (
|
||||||
|
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:
|
||||||
|
|
Loading…
Reference in a new issue