diff --git a/genshin/client/components/gacha.py b/genshin/client/components/gacha.py index 64ff90b6..b45af6a4 100644 --- a/genshin/client/components/gacha.py +++ b/genshin/client/components/gacha.py @@ -72,10 +72,10 @@ async def _get_gacha_page( # America: UTC-5, Europe: UTC+1, others are UTC+8 tz_offsets = {"os_usa": -13, "os_euro": -7} tz_offset = tz_offsets.get(data["region"], 0) - - tz_offset = data["region_time_zone"] - if game is types.Game.STARRAIL: - tz_offset -= 8 # Star rail returns UTC+n for this value + else: + tz_offset = data["region_time_zone"] + if game is types.Game.STARRAIL: + tz_offset -= 8 # Star rail returns UTC+n for this value return data["list"], tz_offset