Skip to content

Commit

Permalink
Merge pull request #13 from Sunshine40/dev/tenhou
Browse files Browse the repository at this point in the history
修正因为pytz.timezone('Asia/Tokyo')实际对应"LMT","JST","JDT"3个时区,…
  • Loading branch information
NekoRabi authored Jun 26, 2023
2 parents 23e1430 + 7cb6f55 commit da72ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/TenHouPlugin/TenHou.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ async def asyautoget_th_match() -> list:
# msg = "检测到新的对局信息:\n"
msg = ""
msg += f"{model}\n"
localtime = datetime.datetime.strptime(f"{usetime['date']} {startTime}", TIME_FORMAT) \
.replace(tzinfo=jptz).astimezone().strftime(TIME_FORMAT)
localtime = jptz.localize(datetime.datetime.strptime(f"{usetime['date']} {startTime}", TIME_FORMAT)) \
.astimezone().strftime(TIME_FORMAT)
msg += f"{localtime},对局时长: {duration}\n"
order = get_matchorder(
playerlist=plname, playername=p)
Expand Down

0 comments on commit da72ee7

Please sign in to comment.