Datetimes in Locked Files are being presented incorrectly

Summary

On 11.7.5-ee, datetimes in Locked Files are being presented wrapped with a tag:

image

Steps to reproduce

See https://gitlab.com/gitlab-com/www-gitlab-com/path_locks for an example.

What is the current bug behavior?

<time class="js-timeago" title="Oct 16, 2018 7:33pm" datetime="2018-10-16T19:33:37Z" data-toggle="tooltip" data-placement="top" data-container="body">Oct 16, 2018</time> is present in browser.

What is the expected correct behavior?

The timestamp should be styled correctly and present only the date.

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:env:info)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Assignee Loading
Time tracking Loading