From 1f9daef870a8c7a984955166a542628d69012ed5 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 27 May 2011 23:37:24 -0400 Subject: [PATCH] Codepro analyze dependencies. Documentation. --- src/com/gitblit/models/RefModel.java | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/com/gitblit/wicket/models/RefModel.java b/src/com/gitblit/models/RefModel.java similarity index 94% rename from src/com/gitblit/wicket/models/RefModel.java rename to src/com/gitblit/models/RefModel.java index e0831f5..b33c8ba 100644 --- a/src/com/gitblit/wicket/models/RefModel.java +++ b/src/com/gitblit/models/RefModel.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.gitblit.wicket.models; +package com.gitblit.models; import java.io.Serializable; import java.util.Date; @@ -21,8 +21,6 @@ import org.eclipse.jgit.lib.ObjectId; import org.eclipse.jgit.lib.Ref; import org.eclipse.jgit.revwalk.RevCommit; - -import com.gitblit.utils.JGitUtils; public class RefModel implements Serializable, Comparable<RefModel> { @@ -38,7 +36,7 @@ } public Date getDate() { - return JGitUtils.getCommitDate(commit); + return new Date(commit.getCommitTime() * 1000L); } public String getName() { -- Gitblit v1.9.1