Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: use RFC3339 timestamp format to report subscription start/end (#7316)

Tianzhou (天舟)e5169f4cf45e
diff --git a/backend/runner/metricreport/reporter.go b/backend/runner/metricreport/reporter.go
index fabaf254fa..fe0db024eb 100644
--- a/backend/runner/metricreport/reporter.go
+++ b/backend/runner/metricreport/reporter.go
@@ -166,8 +166,8 @@ func (m *Reporter) identify(ctx context.Context) (string, error) {
subscriptionStartDate := ""
subscriptionEndDate := ""
if subscription.Plan != api.FREE {
- subscriptionStartDate = time.Unix(subscription.StartedTs, 0).Format(time.RFC822)
- subscriptionEndDate = time.Unix(subscription.ExpiresTs, 0).Format(time.RFC822)
+ subscriptionStartDate = time.Unix(subscription.StartedTs, 0).Format(time.RFC3339)
+ subscriptionEndDate = time.Unix(subscription.ExpiresTs, 0).Format(time.RFC3339)
}
user, err := m.store.GetUserByID(ctx, api.PrincipalIDForFirstUser)