mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 17:01:09 +00:00
fix: 修改sftp账号备份文件名及任务日志提示
This commit is contained in:
@@ -20,6 +20,10 @@ def local_now_display(fmt='%Y-%m-%d %H:%M:%S'):
|
||||
return local_now().strftime(fmt)
|
||||
|
||||
|
||||
def local_now_filename():
|
||||
return local_now().strftime('%Y%m%d-%H%M%S')
|
||||
|
||||
|
||||
def local_now_date_display(fmt='%Y-%m-%d'):
|
||||
return local_now().strftime(fmt)
|
||||
|
||||
|
Reference in New Issue
Block a user