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

  1. Go to https://gitlab.com/gitlab-org/gitter/webapp/tree/develop/public/js/views/chat/decorators
  2. hover your mouse above the 1 year ago in the row of mobileDecorator.js (Jun 20, 2017 1:51pm)
  3. click on the mobileDecorator.js file to open it
  4. 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
Bildschirmfoto_2018-11-24_um_13.11.42 Bildschirmfoto_2018-11-24_um_13.11.34

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 Jun 26, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading