The times displayed are incorrect in callouts for relative times beside "Deployed to" messages.

Summary

The times displayed are incorrect in callouts for relative times beside "Deployed to" messages.

Steps to reproduce

  1. Load a merge request.
  2. Mouse over the relative time next to the "Deployed to" message.
  3. Observe the time. For example, it may say "11:14pm" for "1 hour ago" at 6:01pm.

What is the current bug behavior?

The wrong time is used in the callout—presumably the time in UTC. Combined with the inaccuracy of the relative time (e.g., "1 hour ago" for something that happened nearly two hours ago), this makes it challenging to determine the actual local time of an event in a different time zone.

What is the expected correct behavior?

Show the relevant time in the user's local time zone.

Relevant logs and/or screenshots

This screen shot is from a just-loaded page (gitlab-com/www-gitlab-com!33560 (merged)) at gitlab.com at 6:01pm Pacific Time:

Screen_Shot_2019-10-28_at_6.01.33_PM

Assignee Loading
Time tracking Loading