...
This commit is contained in:
parent
86eaf18cb1
commit
b8206af0d6
1 changed files with 2 additions and 2 deletions
|
@ -204,9 +204,9 @@ async def _(msg: Bot.MessageSession, offset: str):
|
|||
hour = tstr_split[0]
|
||||
minute = tstr_split[1] if len(tstr_split) > 1 else 0
|
||||
if minute == 0:
|
||||
offset = f"{'+' if hours >= 0 else '-'}{abs(hour)}"
|
||||
offset = f"{'+' if hour >= 0 else '-'}{abs(hour)}"
|
||||
else:
|
||||
offset = f"{'+' if hours >= 0 else '-'}{abs(hour)}:{abs(minute):02d}"
|
||||
offset = f"{'+' if hour >= 0 else '-'}{abs(hour)}:{abs(minute):02d}"
|
||||
if hour > 12 or minute > 60:
|
||||
raise ValueError
|
||||
except ValueError:
|
||||
|
|
Reference in a new issue