-
-
Answered; follow-up for remaining relative-age tooltips tracked in #2907.
-
Answer
Relative texts like
2 weeks agoare produced byDateUtils.formatAge(), which uses the PrettyTime library with the current UI locale to turn an absolute instant into a human-readable age.Absolute date/time strings come from
DateUtils.formatDateTime(), formatted asyyyy-MM-dd HH:mmin the browser timezone. On first page load, OneDev detects that timezone withIntl.DateTimeFormat().resolvedOptions().timeZoneand stores it in the web session (BasePage→WebSession).How to see the absolute time today: On many screens (issue and pull request detail/activities, issue/PR/code-comment lists, contributor dates, etc.), hover the relative age text — the absolute datetime is already shown via a native
titletooltip or Tippy (data-tippy-content).Gaps: Some relative-age displays still have no absolute hover tooltip (build list and side panel, package list and side panel, workspace list/data, build artifacts, folder last-commit age, comment history/revision titles, and some blame/markdown commit ages). Opened improvement #2907 to add browser-timezone absolute datetime hover tooltips there, and linked it as related.
-
Previous Value Current Value Open
Closed
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
2 weeks ago- text - how is this being determined, and how can I find out an actual date and time (in my browser timezone), showing in a her tooltip.Once investigated, create an issue to do the work