Skip to content

Commit

Permalink
fix bug with ceartin group member join timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
treeben77 committed Sep 27, 2023
1 parent e5ed464 commit cbe7569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rblxopencloud/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def fetch_info(self) -> "Group":

self.name = data["displayName"]
self.description = data["description"]
self.created_at = datetime.datetime.fromisoformat((data["createTime"].split("Z")[0]+"0"*6)[0:26])
self.updated_at = datetime.datetime.fromisoformat((data["updateTime"].split("Z")[0]+"0"*6)[0:26])
self.created_at = datetime.datetime.fromisoformat((data["createTime"].split("Z")[0]+("." if not "." in data["createTime"] else "")+"0"*6)[0:26])
self.updated_at = datetime.datetime.fromisoformat((data["updateTime"].split("Z")[0]+("." if not "." in data["updateTime"] else "")+"0"*6)[0:26])
self.owner = User(int(data["owner"].split("/")[1]), self.__api_key) if data.get("owner") else None
self.member_count = data["memberCount"]
self.public_entry = data["publicEntryAllowed"]
Expand Down

0 comments on commit cbe7569

Please sign in to comment.