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

P4 changes date are offset by 12 hours on changes page

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • p4-plugin
    • None

      There is a 12 hour time difference between the time displayed in P4V and the time displayed in Jenkins changes pages. (see attached screenshot)

      This is either some timezone problem or potentially a 24H conversion issue

          [JENKINS-30387] P4 changes date are offset by 12 hours on changes page

          Paul Allen added a comment -

          A Time zone issue is possible; I read the date/time from the Perforce Server, but do not process it for local time. What are the time-zones for your Perforce Server, your Jenkins server and your machine (P4V)? Are any 12 hours apart?

          Paul Allen added a comment - A Time zone issue is possible; I read the date/time from the Perforce Server, but do not process it for local time. What are the time-zones for your Perforce Server, your Jenkins server and your machine (P4V)? Are any 12 hours apart?

          Morne Joubert added a comment -

          Have track the actual problem but not yet had a look at the code.

          In the screenshot the dates in green are correct and the date in red are incorrect.

          The incorrect dates are only for unshelved changes, so there must be a difference on how the dates are extracted for the different set of changes

          Morne Joubert added a comment - Have track the actual problem but not yet had a look at the code. In the screenshot the dates in green are correct and the date in red are incorrect. The incorrect dates are only for unshelved changes, so there must be a difference on how the dates are extracted for the different set of changes

          Morne Joubert added a comment -

          have found and fixed the problem. shelving fix

          Morne Joubert added a comment - have found and fixed the problem. shelving fix

          Code changed in jenkins
          User: Paul Allen
          Path:
          src/main/java/org/jenkinsci/plugins/p4/changes/P4ChangeEntry.java
          http://jenkins-ci.org/commit/p4-plugin/18e4708722279a3a07eafb35f1419dfed6c7dbd1
          Log:
          Fix problem with saving hours in 12 hour format.

          JENKINS-30387
          @mjoubert

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Paul Allen Path: src/main/java/org/jenkinsci/plugins/p4/changes/P4ChangeEntry.java http://jenkins-ci.org/commit/p4-plugin/18e4708722279a3a07eafb35f1419dfed6c7dbd1 Log: Fix problem with saving hours in 12 hour format. JENKINS-30387 @mjoubert

            Unassigned Unassigned
            mornejoubert Morne Joubert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: