同步更新:重构路由、服务模块,更新前端构建
This commit is contained in:
14
services/time_utils.py
Normal file
14
services/time_utils.py
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
import pytz
|
||||
|
||||
BEIJING_TZ = pytz.timezone("Asia/Shanghai")
|
||||
|
||||
|
||||
def get_beijing_now() -> datetime:
|
||||
return datetime.now(BEIJING_TZ)
|
||||
|
||||
Reference in New Issue
Block a user