mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
lfs/lock: round locked_at timestamp to second (#7872)
* lfs/lock: round locked_at timestamp to second * test returned locked_at values * tests: use time RFC3339
This commit is contained in:
committed by
Lunny Xiao
parent
a077c9d551
commit
c2c35d169c
@@ -56,7 +56,7 @@ func (l *LFSLock) APIFormat() *api.LFSLock {
|
||||
return &api.LFSLock{
|
||||
ID: strconv.FormatInt(l.ID, 10),
|
||||
Path: l.Path,
|
||||
LockedAt: l.Created,
|
||||
LockedAt: l.Created.Round(time.Second),
|
||||
Owner: &api.LFSLockOwner{
|
||||
Name: l.Owner.DisplayName(),
|
||||
},
|
||||
|
Reference in New Issue
Block a user