feat: time util

This commit is contained in:
Bobo
2025-05-28 23:58:08 +08:00
parent faa5817857
commit 3ec9bbbd27
2 changed files with 6 additions and 6 deletions

View File

@@ -172,7 +172,7 @@ func TimeToDateString(tm *time.Time) *string {
return trans.String(tm.In(GetDefaultTimeLocation()).Format(DateLayout))
}
func TimeToDateStringWithLayout(tm *time.Time, layout string) *string {
func TimeToString(tm *time.Time, layout string) *string {
if tm == nil {
return nil
}