changed Iota to FormatInt to allow int64 value preventing 2038 overflow

Signed-off-by: Trenton VanderWert <trenton.vanderwert@gmail.com>
pull/12788/head
Trenton VanderWert 11 months ago
parent e81f6140dd
commit 4a45342887
No known key found for this signature in database
GPG Key ID: 4BBE2454B180637A

@ -177,7 +177,7 @@ func (secrets *Secrets) Update(key string, rls *rspb.Release) error {
lbs.init()
lbs.fromMap(rls.Labels)
lbs.set("modifiedAt", strconv.Itoa(int(time.Now().Unix())))
lbs.set("modifiedAt", strconv.FormatInt(time.Now().Unix(), 10))
// create a new secret object to hold the release
obj, err := newSecretsObject(key, rls, lbs)

Loading…
Cancel
Save