feat: 增加获取空时区方法

This commit is contained in:
zhangdeman committed 2026-03-21 10:32:10 +08:00
1 parent 09c64ba254
commit ba21b39c41
1 file changed
+4
+4
View File
@@ -106,3 +106,7 @@ func (t *Time) getTimeFormat(defaultFormat string, layout ...string) string {
}
return defaultFormat
}
func DefaultZeroTime() time.Time {
return time.Date(1970, 1, 1, 0, 0, 0, 0, time.Local)
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.