[gitg] Time zone is already included in time
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Time zone is already included in time
- Date: Sat, 6 Jul 2013 11:19:15 +0000 (UTC)
commit c695b50836e3386beeedb067964afec0494c03f4
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sat Jul 6 13:17:41 2013 +0200
Time zone is already included in time
libgitg/gitg-commit.vala | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libgitg/gitg-commit.vala b/libgitg/gitg-commit.vala
index 33f1efc..593d529 100644
--- a/libgitg/gitg-commit.vala
+++ b/libgitg/gitg-commit.vala
@@ -93,7 +93,7 @@ public class Commit : Ggit.Commit
}
}
- private string date_for_display(DateTime dt, TimeZone time_zone)
+ private string date_for_display(DateTime dt)
{
TimeSpan t = (new DateTime.now_local()).difference(dt);
@@ -119,16 +119,16 @@ public class Commit : Ggit.Commit
// FIXME: Localize these date formats, Bug 699196
else if (dt.get_year() == new DateTime.now_local().get_year())
{
- return dt.to_timezone(time_zone).format("%h %e, %I:%M %P");
+ return dt.format("%h %e, %I:%M %P");
}
- return dt.to_timezone(time_zone).format("%h %e %Y, %I:%M %P");
+ return dt.format("%h %e %Y, %I:%M %P");
}
public string committer_date_for_display
{
owned get
{
- return date_for_display(get_committer().get_time(), get_committer().get_time_zone());
+ return date_for_display(get_committer().get_time());
}
}
@@ -136,7 +136,7 @@ public class Commit : Ggit.Commit
{
owned get
{
- return date_for_display(get_author().get_time(), get_author().get_time_zone());
+ return date_for_display(get_author().get_time());
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]