Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35223

Allow configurable date/time format for all temporal fields in output

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None

      Our organisation uses many developers, ops people and servers all located in many different timezones. Though servers are generally (but not always (don't ask)) configured on UTC, apps generally don't use UTC and bug reports filed by users are invariably in the local TZ.

      To help us reconcile system and application logs and user reports against Jenkins tasks, it would be really helpful if Jenkins had the option to display its temporal information in ISO8601 format, rather than just the "X ago" format.

          [JENKINS-35223] Allow configurable date/time format for all temporal fields in output

          James Dumay added a comment -

          cafuego as discussed on Twitter, would you be happy with a tooltip displaying the precision date on the "moment ago" date format?

          James Dumay added a comment - cafuego as discussed on Twitter, would you be happy with a tooltip displaying the precision date on the "moment ago" date format?

          Michael Neale added a comment -

          I very much like this - speaking as a timezone challenged person in this end of the world

          So by ISO8601 you mean including the explicit TZ of course? (some people mean just the formatting). So it won't matter what the time displayed is it will be correct allowing for the time zone?

          Michael Neale added a comment - I very much like this - speaking as a timezone challenged person in this end of the world So by ISO8601 you mean including the explicit TZ of course? (some people mean just the formatting). So it won't matter what the time displayed is it will be correct allowing for the time zone?

          jamesdumay Ideally the columns as-is would show the full timestamp, not just on hover. that would make it easier to find a job that ran (or failed) at a specific time without needing to hover on a bunch of them.

          michaelneale With explicit timezone would be good, assuming I can specify at run-time via $TZ or via a setting.

          The work-around I use currently (CompactColumns) doesn't, but does grab the date format from the browser locale. To me that makes it unclear whether the date/time is also taken from the browser or not. An explicit TZ offset would remove that.

          Alternatively, a configurable format string (I know jamesdumay hates settings, I'll buy him a coffee to pacify him next time I see him would allow for more flexibility too.

          Peter Lieverdink added a comment - jamesdumay Ideally the columns as-is would show the full timestamp, not just on hover. that would make it easier to find a job that ran (or failed) at a specific time without needing to hover on a bunch of them. michaelneale With explicit timezone would be good, assuming I can specify at run-time via $TZ or via a setting. The work-around I use currently (CompactColumns) doesn't, but does grab the date format from the browser locale. To me that makes it unclear whether the date/time is also taken from the browser or not. An explicit TZ offset would remove that. Alternatively, a configurable format string (I know jamesdumay hates settings, I'll buy him a coffee to pacify him next time I see him would allow for more flexibility too.

          James Dumay added a comment -

          cafuego What if we made a sticky toggle - click on the date and it switches all the moment agos to precision dates?

          James Dumay added a comment - cafuego What if we made a sticky toggle - click on the date and it switches all the moment agos to precision dates?

          Works for me!

          Peter Lieverdink added a comment - Works for me!

          James Dumay added a comment -

          Sounds like a plan

          James Dumay added a comment - Sounds like a plan

            Unassigned Unassigned
            cafuego Peter Lieverdink
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: