This commit is contained in:
Mrx
2026-05-10 13:36:47 +08:00
parent 609a35fad6
commit 07394a4ffa
12 changed files with 2010 additions and 82 deletions

View File

@@ -104,11 +104,11 @@ func getCurrentDate() string {
}
// formatDateForTemplate 格式化日期用于模板填写
// 格式: "2006年01月02日"
// e签宝日期控件通常预设为 yyyy-MM-dd与中文年月日格式不兼容时需用本格式。
//
// 返回: 中文格式的日期字符串
// 返回: yyyy-MM-dd
func formatDateForTemplate() string {
return time.Now().Format("20060102")
return time.Now().Format("2006-01-02")
}
// generateFileName 生成带时间戳的文件名