mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Remove Unix() invocations on 'time.Time' objects and removed conversion of time to UTC
This commit is contained in:
@@ -77,7 +77,7 @@ func (b *backend) pathRoleCreateRead(
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
expiration := time.Now().UTC().
|
||||
expiration := time.Now().
|
||||
Add(lease.Lease).
|
||||
Format("2006-01-02 15:04:05-0700")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user