Archived
1
0
Fork 0
This commit is contained in:
多羅狼 2023-12-10 01:40:52 +08:00 committed by GitHub
parent 36d5fac580
commit 86eaf18cb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,7 +206,7 @@ async def _(msg: Bot.MessageSession, offset: str):
if minute == 0:
offset = f"{'+' if hours >= 0 else '-'}{abs(hour)}"
else:
offset = f"{'+' if hours >= 0 else '-'}{abs(hour)}:{abs(minute):02d}"
offset = f"{'+' if hours >= 0 else '-'}{abs(hour)}:{abs(minute):02d}"
if hour > 12 or minute > 60:
raise ValueError
except ValueError: