Discrepancy between Last update values among repo-/blobview
Summary
The Last update column in the Repository view displays a different time than the blob view opening the file.
Probably related to gitlab-ce#44822?
Steps to reproduce
- Go to https://gitlab.com/gitlab-org/gitter/webapp/tree/develop/public/js/views/chat/decorators
- hover your mouse above the 1 year ago in the row of mobileDecorator.js (Jun 20, 2017 1:51pm)
- click on the mobileDecorator.js file to open it
- check the authored date above the fileview (Aug 18, 2016 1:30pm)
What is the current bug behavior?
Time difference between repository- and file view
What is the expected correct behavior?
Shouldn't be both dates and the display of bygone time be equal - I would expect it.
Relevant logs and/or screenshots
| blob view | folder view |
|---|---|
![]() |
![]() |
Output of checks
This bug happens on GitLab.com
Possible fixes
in logs_tree.js.haml
time_ago_with_tooltip(commit.committed_date)
which is Time.at(commit.committer.date.seconds).utc is used (for the folder view),
while on the blob view the created at time is calculated by #{time_ago_with_tooltip(event.created_at)} in _last_push.html.haml
Edited by 🤖 GitLab Bot 🤖

