u
This commit is contained in:
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")
|
||||
}
|
||||
Reference in new issue
Block a user