[ 
https://issues.apache.org/jira/browse/SCM-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17961627#comment-17961627
 ] 

ASF GitHub Bot commented on SCM-462:
------------------------------------

jira-importer opened a new issue, #676:
URL: https://github.com/apache/maven-scm/issues/676

   **[Sudharma 
Rao](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=sudharma)** 
opened 
**[SCM-462](https://issues.apache.org/jira/browse/SCM-462?redirect=false)** and 
commented
   
   Getting following error if the date format is other than yyyy-MM-dd as in 
case of Perforce SCM
   
   Embedded error: An error has occurred during changelog command :
   Unparseable date: "2008/02/08 01:01:01"
   
   Following is the plugin configuration and I'm using Perforce SCM.
   \<plugin>
   \<groupId>org.apache.maven.plugins\</groupId>
   \<artifactId>maven-changelog-plugin\</artifactId>
   \<configuration>
   \<dateFormat>yyyy/MM/dd HH:mm:ss\</dateFormat>
   \<type>date\</type>
   \<dates>
   \<date implementation="java.lang.String">2008/02/08 01:01:01\</date>
   \<date implementation="java.lang.String">2008/02/01 01:01:01\</date>
   \</dates>
   \</configuration>
   \</plugin>
   
   Cause:
   The date format is hardcoded to "yyyy-MM-dd" at line 572 in 
org/apache/maven/plugin/changelog/ChangeLogReport.java
   
   Solution:
   
   The SCM plugin uses ' \<userDateFormat>yyyy/MM/dd 
HH:mm:ss\</userDateFormat>' for the start and end date. The Changelog plugin 
doesn't use this. Please make it use either 'userDateFormat' or 'dateFormat' 
for parsing date.
   
   
   ---
   
   **Affects:** 1.2
   
   2 votes, 3 watchers
   




> Unparseable date exception if the date format is other than yyyy-MM-dd for 
> the date range
> -----------------------------------------------------------------------------------------
>
>                 Key: SCM-462
>                 URL: https://issues.apache.org/jira/browse/SCM-462
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Perforce SCM
>            Reporter: Sudharma Rao
>            Assignee: Olivier Lamy
>            Priority: Critical
>
> Getting following error if the date format is other than yyyy-MM-dd as in 
> case of Perforce SCM
> Embedded error: An error has occurred during changelog command : 
> Unparseable date: "2008/02/08 01:01:01"
> Following is the plugin configuration and I'm using Perforce SCM.
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-changelog-plugin</artifactId>
>         <configuration>
>           <dateFormat>yyyy/MM/dd HH:mm:ss</dateFormat>
>           <type>date</type>
>           <dates>
>             <date implementation="java.lang.String">2008/02/08 01:01:01</date>
>             <date implementation="java.lang.String">2008/02/01 01:01:01</date>
>           </dates>
>    </configuration>
>       </plugin>
> Cause:
> The date format is hardcoded to "yyyy-MM-dd" at line 572 in 
> org/apache/maven/plugin/changelog/ChangeLogReport.java
> Solution:
> The SCM plugin uses ' <userDateFormat>yyyy/MM/dd HH:mm:ss</userDateFormat>' 
> for the start and end date. The Changelog plugin doesn't use this. Please 
> make it use either 'userDateFormat' or 'dateFormat' for parsing date.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to