parent
4c31c891fd
commit
852a30229d
1 changed files with 1 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue