This commit is contained in:
parent
c53825fed1
commit
3ed06f7c2a
1 changed files with 1 additions and 5 deletions
|
@ -99,11 +99,7 @@ def exist_post(file_id: int) -> float | None:
|
|||
|
||||
def time_now() -> float:
|
||||
"""get current time based on timezone"""
|
||||
now = datetime.now(datetime.timezone.utc)
|
||||
return (
|
||||
now.timestamp()
|
||||
+ timezone(session[Config._session_timezone]).utcoffset(now).total_seconds()
|
||||
)
|
||||
return datetime.now(timezone(session[Config._session_timezone])).timestamp()
|
||||
|
||||
|
||||
def create_post(file_id: int, content: str) -> bool:
|
||||
|
|
Loading…
Reference in a new issue