]> source.dussan.org Git - gitblit.git/commitdiff
Corrected timestamp on activity panel from author time to committer time
authorJames Moger <james.moger@gitblit.com>
Sun, 25 Mar 2012 22:10:33 +0000 (18:10 -0400)
committerJames Moger <james.moger@gitblit.com>
Sun, 25 Mar 2012 22:10:33 +0000 (18:10 -0400)
src/com/gitblit/models/Activity.java
src/com/gitblit/wicket/panels/ActivityPanel.java

index 9d58ef07b7d6c40f7e9bd4e42a5737effd5cc8c8..771c8a1ab456331136a1ae177aa59f08c375c9b7 100644 (file)
@@ -179,7 +179,11 @@ public class Activity implements Serializable, Comparable<Activity> {
                public PersonIdent getAuthorIdent() {\r
                        return commit.getAuthorIdent();\r
                }\r
-               \r
+\r
+               public PersonIdent getCommitterIdent() {\r
+                       return commit.getCommitterIdent();\r
+               }\r
+\r
                @Override\r
                public boolean equals(Object o) {\r
                        if (o instanceof RepositoryCommit) {\r
index a7e68d86b60f51a42f2844fa55afaa43b177c9aa..250b58dfd8e34ef6b4d43a8e09993cec498e68da 100644 (file)
@@ -68,8 +68,8 @@ public class ActivityPanel extends BasePanel {
                                                final RepositoryCommit commit = item.getModelObject();\r
                                                Fragment fragment = new Fragment("commit", "commitFragment", this);\r
 \r
-                                               // time of day\r
-                                               fragment.add(WicketUtils.createTimeLabel("time", commit.getAuthorIdent()\r
+                                               // commit time of day\r
+                                               fragment.add(WicketUtils.createTimeLabel("time", commit.getCommitterIdent()\r
                                                                .getWhen(), getTimeZone()));\r
 \r
                                                // avatar\r