This commit is contained in:
oneao committed 2026-01-19 22:12:28 +08:00
1 parent 1934225c53
commit e51f4948d4
10 files changed
+89 -66

No files matched your search

@@ -129,6 +129,9 @@ func TimestampToMillis(ts pgtype.Timestamp) int64 {
return ts.Time.UnixMilli()
}
func DateToString(s pgtype.Date) string {
return s.Time.String()
func DateToString(d pgtype.Date) string {
if !d.Valid {
return ""
}
return d.Time.Format("2006-01-02")
}