aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-time.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy/empathy-time.c b/libempathy/empathy-time.c
index 64350404c..5a934a5e3 100644
--- a/libempathy/empathy-time.c
+++ b/libempathy/empathy-time.c
@@ -152,6 +152,11 @@ empathy_time_to_string_relative (time_t then)
return g_strdup_printf (ngettext ("%d day ago",
"%d days ago", seconds), seconds);
}
+ else if (seconds < (60 * 60 * 24 * 30)) {
+ seconds /= 60 * 60 * 24 * 7;
+ return g_strdup_printf (ngettext ("%d week ago",
+ "%d weeks ago", seconds), seconds);
+ }
else {
seconds /= 60 * 60 * 24 * 30;
return g_strdup_printf (ngettext ("%d month ago",