hg annotation : try to fix wrong date parsing

This commit is contained in:
Nadya Zabrodina
2013-07-03 18:57:48 +04:00
parent f89909e4f5
commit 08e62e7934
@@ -78,7 +78,7 @@ public class HgAnnotateCommand {
String user = matcher.group(USER_GROUP);
HgRevisionNumber rev = HgRevisionNumber.getInstance(matcher.group(REVISION_GROUP), matcher.group(CHANGESET_GROUP));
String dateGroup = matcher.group(DATE_GROUP);
SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy Z");
SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy Z");
String date = "";
try {
date = DateFormatUtil.formatPrettyDate(dateFormat.parse(dateGroup));