mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +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:
parent
a077c9d551
commit
c2c35d169c
2 changed files with 6 additions and 2 deletions
|
@ -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(),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue