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

The Date string nomenclature changed from mm/dd/yyyy to dd/mm/yyyy in the detail Recent Changes

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • clearcase-plugin
    • None
    • Hudson 1.349, Glassfish v3, Linux

      The Date string in the detail Recent Changes changed from mm/dd/yyyy to dd/mm/yyyy.

          [JENKINS-5876] The Date string nomenclature changed from mm/dd/yyyy to dd/mm/yyyy in the detail Recent Changes

          Alan Harder added a comment -

          what SCM type do you use? did you change the locale on your Hudson server or in your browser?

          Alan Harder added a comment - what SCM type do you use? did you change the locale on your Hudson server or in your browser?

          mezlight added a comment -

          That's weird the file encoding is ANSI_X3.4-1968 in the System Properties:

          file.encoding ANSI_X3.4-1968

          How do I change it back to UTF-8?

          I didn't change anything...I use ClearCase SCM and I didn't change the locale in either of my browsers (IE,Firefox,Chrome). The hudson server runs as a specific user and not as root

          mezlight added a comment - That's weird the file encoding is ANSI_X3.4-1968 in the System Properties: file.encoding ANSI_X3.4-1968 How do I change it back to UTF-8? I didn't change anything...I use ClearCase SCM and I didn't change the locale in either of my browsers (IE,Firefox,Chrome). The hudson server runs as a specific user and not as root

          Alan Harder added a comment -

          @encoding - can you run java with -Dfile.encoding=UTF-8 .. probably somewhere in glassfish admin console you can set java system properties.

          @date- clearcase uses <i:formatDate/> to show the date. No pattern is provided, so it must be using a format determined from the locale.

          Alan Harder added a comment - @encoding - can you run java with -Dfile.encoding=UTF-8 .. probably somewhere in glassfish admin console you can set java system properties. @date- clearcase uses <i:formatDate/> to show the date. No pattern is provided, so it must be using a format determined from the locale.

          mezlight added a comment -

          The encoding was changed to UTF-8 (JVM option) but that still didn't solve the problem...

          Yes, the changes uses formatDate but in the index.jelly file for the ClearCase plug-in it is
          using dateStr which is formatted.

          My changes looks like the following, which is correct:

          #152 (Mar 8, 2010 10:11:15 AM)
          
          1.	Jason Messmer detail	mezlight: updating the release notes
          2.	Jason Messmer detail	mezlight: merging from dev to dev1
          

          If I click on the detail link (changes#detail0) above the date format is wrong:

          1. Jason Messmer on 05/03/2010 12:37:59
          mezlight: updating the release notes
          
          2. Jason Messmer on 05/03/2010 12:37:58
          mezlight: merging from dev to dev1
          

          It should read:

          1. Jason Messmer on 03/05/2010 12:37:59
          mezlight: updating the release notes
          
          2. Jason Messmer on 03/05/2010 12:37:58
          mezlight: merging from dev to dev1
          

          From the index.jelly file:

          <b>${loop.index + 1}. <a href="${rootURL}/${cs.author.url}/">${cs.author}</a> on ${cs.dateStr}</b><br/>

          Looking @ the ClearCase plug-in code the only formatter is in the ClearCaseChangeLogEntry.java file which is dd/MM/yyyy HH:mm:ss.

          mezlight added a comment - The encoding was changed to UTF-8 (JVM option) but that still didn't solve the problem... Yes, the changes uses formatDate but in the index.jelly file for the ClearCase plug-in it is using dateStr which is formatted. My changes looks like the following, which is correct: #152 (Mar 8, 2010 10:11:15 AM) 1. Jason Messmer detail mezlight: updating the release notes 2. Jason Messmer detail mezlight: merging from dev to dev1 If I click on the detail link (changes#detail0) above the date format is wrong: 1. Jason Messmer on 05/03/2010 12:37:59 mezlight: updating the release notes 2. Jason Messmer on 05/03/2010 12:37:58 mezlight: merging from dev to dev1 It should read: 1. Jason Messmer on 03/05/2010 12:37:59 mezlight: updating the release notes 2. Jason Messmer on 03/05/2010 12:37:58 mezlight: merging from dev to dev1 From the index.jelly file: <b>${loop.index + 1}. <a href="${rootURL}/${cs.author.url}/">${cs.author}</a> on ${cs.dateStr}</b><br/> Looking @ the ClearCase plug-in code the only formatter is in the ClearCaseChangeLogEntry.java file which is dd/MM/yyyy HH:mm:ss.

          Alan Harder added a comment -

          when did the date format change? did you upgrade clearcase plugin?

          Alan Harder added a comment - when did the date format change? did you upgrade clearcase plugin?

          Alan Harder added a comment -

          yes, mentioning more exactly which page you were talking about would have been useful in the original report
          ${cs.dateStr} comes from ClearCaseChangeLogEntry.java which has:
          private static final DateFormat DATE_FORMATTER = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
          that line has been there since 2007-11-20.

          Changing component to clearcase.

          Alan Harder added a comment - yes, mentioning more exactly which page you were talking about would have been useful in the original report ${cs.dateStr } comes from ClearCaseChangeLogEntry.java which has: private static final DateFormat DATE_FORMATTER = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); that line has been there since 2007-11-20. Changing component to clearcase.

          mezlight added a comment -

          Ummm...not sure why I didn't see this before or maybe the jelly file changed in previous releases. Thanks...

          mezlight added a comment - Ummm...not sure why I didn't see this before or maybe the jelly file changed in previous releases. Thanks...

          Do you still consider this as a problem ? Or can I close this ?

          Vincent Latombe added a comment - Do you still consider this as a problem ? Or can I close this ?

          mezlight added a comment -

          Yes...this is still an issue...

          mezlight added a comment - Yes...this is still an issue...

          evernat added a comment -

          evernat added a comment - still there: https://github.com/jenkinsci/clearcase-plugin/blob/master/src/main/java/hudson/plugins/clearcase/ClearCaseChangeLogEntry.java I suggest to use a DateFormat with the Locale of the browser.

            Unassigned Unassigned
            mezlight mezlight
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: