]> source.dussan.org Git - gitblit.git/commitdiff
Fixed activity page timezone bug (issue 54)
authorJames Moger <james.moger@gitblit.com>
Tue, 21 Feb 2012 22:30:41 +0000 (17:30 -0500)
committerJames Moger <james.moger@gitblit.com>
Tue, 21 Feb 2012 22:30:41 +0000 (17:30 -0500)
src/com/gitblit/wicket/panels/ActivityPanel.java

index 2ee437de2155211322055a828d83ea9ac64f3841..45486195fa2a4de4cb1289163b5d07be5177af1e 100644 (file)
@@ -58,8 +58,7 @@ public class ActivityPanel extends BasePanel {
 \r
                        public void populateItem(final Item<Activity> item) {\r
                                final Activity entry = item.getModelObject();\r
-                               item.add(WicketUtils.createDatestampLabel("title", entry.startDate, GitBlitWebSession\r
-                                               .get().getTimezone()));\r
+                               item.add(WicketUtils.createDatestampLabel("title", entry.startDate, getTimeZone()));\r
 \r
                                // display the commits in chronological order\r
                                DataView<RepositoryCommit> commits = new DataView<RepositoryCommit>("commits",\r
@@ -72,7 +71,7 @@ public class ActivityPanel extends BasePanel {
 \r
                                                // time of day\r
                                                fragment.add(WicketUtils.createTimeLabel("time", commit.getAuthorIdent()\r
-                                                               .getWhen(), GitBlitWebSession.get().getTimezone()));\r
+                                                               .getWhen(), getTimeZone()));\r
 \r
                                                // avatar\r
                                                fragment.add(new GravatarImage("avatar", commit.getAuthorIdent(), 36));\r