aboutsummaryrefslogtreecommitdiffstats
path: root/models/lfs_lock.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/lfs_lock.go')
-rw-r--r--models/lfs_lock.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/lfs_lock.go b/models/lfs_lock.go
index a27a6f495e..c38686796b 100644
--- a/models/lfs_lock.go
+++ b/models/lfs_lock.go
@@ -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(),
},