[gitg] Fix relative time in history view; bug 698830
- From: Sindhu S <sindhus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Fix relative time in history view; bug 698830
- Date: Sat, 27 Apr 2013 02:09:02 +0000 (UTC)
commit 716fed53842df92d46b825fe7b942728c79e8c07
Author: Sindhu S <sindhus live in>
Date: Fri Apr 26 21:42:21 2013 +0530
Fix relative time in history view; bug 698830
libgitg/gitg-commit.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgitg/gitg-commit.vala b/libgitg/gitg-commit.vala
index 5cc0e8e..ba65693 100644
--- a/libgitg/gitg-commit.vala
+++ b/libgitg/gitg-commit.vala
@@ -117,11 +117,11 @@ public class Commit : Ggit.Commit
{
return "An hour ago";
}
- else if (t < 3600 * 12)
+ else if (t < 3600 * 24)
{
return "%d hours ago".printf((int)Math.round(t / 3600));
}
- else if (t < 3600 * 24)
+ else if (t < 3600 * 24 * 2)
{
return "A day ago";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]