We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a5c9f0 commit 8781fb6Copy full SHA for 8781fb6
extensions/cli/ccfddl/convert_to_ical.py
@@ -19,6 +19,8 @@ def get_timezone(tz_str: str) -> timezone:
19
"""将时区字符串转换为datetime.timezone对象"""
20
if tz_str == 'AoE':
21
return timezone(timedelta(hours=-12))
22
+ if tz_str == 'UTC':
23
+ return timezone.utc
24
match = re.match(r'UTC([+-])(\d{1,2})$', tz_str)
25
if not match:
26
raise ValueError(f"无效的时区格式: {tz_str}")
0 commit comments