mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-06 01:40:52 +00:00
perf: 优化用户创建邮件 (#7072)
* perf: 优化通知中的连接点击 * perf: 优化用户创建邮件 * perf: 优化时间日期 Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
@@ -25,7 +25,7 @@ def utc_now():
|
||||
|
||||
|
||||
def local_now():
|
||||
return as_current_tz(utc_now())
|
||||
return dj_timezone.localtime(dj_timezone.now())
|
||||
|
||||
|
||||
def local_now_display(fmt='%Y-%m-%d %H:%M:%S'):
|
||||
|
Reference in New Issue
Block a user