dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Tooltip Timezones

Open bdowling opened this issue 3 years ago • 3 comments

What would you like to be added?

Relative datetime columns such as Created show up with a tool-tip that has no timezone. On relatively recent events, one can infer that this is actually the browser's host timezone, but there is no indication of that. Any thoughts to adjusting format (currently is medium) this to include a timezone attribute?

https://github.com/kubernetes/dashboard/blob/e175cf179243217483d0148f2e7d380cb6da5467/modules/web/src/common/components/date/template.html#L18

https://github.com/kubernetes/dashboard/blob/e175cf179243217483d0148f2e7d380cb6da5467/modules/web/src/common/components/date/component.ts#L45

https://angular.io/api/common/DatePipe

image

Why is this needed?

Sometimes it's important to know exactly when things happened and without a timezone the user could guess thinking everything was in UTC or system time for example.

bdowling avatar Dec 20 '22 21:12 bdowling

This tooltip always shows the UTC time of the server AFAIR. This is just a plain creationTimestamp field of the resource. We can add UTC information there for clarity.

floreks avatar Dec 21 '22 09:12 floreks

I originally thought they'd be UTC as well, based on historical issues noted in this repo, but in practice I found it was localtime. It uses the angular DatePipe mentioned above without defining a TZ, so it defaults to host/browser timezone. From a user standpoint, this is more intuitive IMHO in a browser context even though DevOps folks often work with systems in UTC timezone. I just think it should display a timezone regardless.

bdowling avatar Dec 21 '22 16:12 bdowling

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Mar 21 '23 17:03 k8s-triage-robot