chore: fully implement enterprise audit pkg (#3821)

This commit is contained in:
Colin Adler
2022-09-02 16:42:28 +00:00
committed by GitHub
parent fefdff4946
commit 55c13c8ff9
12 changed files with 164 additions and 177 deletions
+7 -1
View File
@@ -4,5 +4,11 @@ import "time"
// Now returns a standardized timezone used for database resources.
func Now() time.Time {
return time.Now().UTC()
return Time(time.Now().UTC())
}
// Time returns a time compatible with Postgres. Postgres only stores dates with
// microsecond precision.
func Time(t time.Time) time.Time {
return t.Round(time.Microsecond)
}