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

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

    Details

    • Similar Issues:
    • Epic Link:

      Description

      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.

        Attachments

          Activity

          Hide
          jamesdumay James Dumay added a comment -

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

          Show
          jamesdumay James Dumay added a comment - Peter Lieverdink as discussed on Twitter, would you be happy with a tooltip displaying the precision date on the "moment ago" date format?
          Hide
          michaelneale 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?

          Show
          michaelneale 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?
          Hide
          cafuego Peter Lieverdink added a comment -

          James Dumay 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.

          Michael Neale 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 James Dumay hates settings, I'll buy him a coffee to pacify him next time I see him would allow for more flexibility too.

          Show
          cafuego Peter Lieverdink added a comment - James Dumay 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. Michael Neale 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 James Dumay hates settings, I'll buy him a coffee to pacify him next time I see him would allow for more flexibility too.
          Hide
          jamesdumay James Dumay added a comment -

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

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

          Works for me!

          Show
          cafuego Peter Lieverdink added a comment - Works for me!
          Hide
          jamesdumay James Dumay added a comment -

          Sounds like a plan

          Show
          jamesdumay James Dumay added a comment - Sounds like a plan

            People

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

              Dates

              • Created:
                Updated: