package api import ( "time" ) func FormatAPITime(t time.Time) string { if t.IsZero() { return "" } return t.UTC().Format(time.RFC3339) }