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

Wrong time zone in log use docker from jenkins/jenkins:2.177

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: winstone-jetty
    • Labels:
      None
    • Environment:
      centos 7 x64
      docker1.13.1
      jenkins/jenkins:2.177
    • Similar Issues:

      Description

      exec cmd in centos7 

      docker run -e TZ=Asia/Shanghai -e JAVA_OPTS="-Duser.timezone=Asia/Shanghai" jenkins/jenkins:2.176

      Log time zone is correct

      Then change image from jenkins/jenkins:2.176 to jenkins/jenkins:2.177

      Log time zone is wrong

      please help 

       

       

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          It's not wrong, just always logging in UTC. Could you explain why this is a problem? It's not ambiguous at least.

           

          Show
          danielbeck Daniel Beck added a comment - It's not wrong, just always logging in UTC. Could you explain why this is a problem? It's not ambiguous at least.  
          Show
          danielbeck Daniel Beck added a comment - Looks like a deliberate choice per https://github.com/jenkinsci/lib-support-log-formatter/blob/a0a5908b91497dcaf5504045f5b84e39d5ceb670/src/main/java/io/jenkins/lib/support_log_formatter/SupportLogFormatter.java#L50 so you'd need to provide a custom log format.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            yamazakei321 Ken black
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: