[nautilus] file: use g_date_new_dmy() directly



commit adc1cebde795c8b73088aecdfd101704797ff9f1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 11 10:51:43 2012 -0400

    file: use g_date_new_dmy() directly
    
    Instead of the eel helper.

 libnautilus-private/nautilus-file.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index ad0de40..e29ed14 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -4458,7 +4458,9 @@ nautilus_file_fit_date_as_string (NautilusFile *file,
 		return eel_strdup_strftime ("%Y-%m-%d %H:%M:%S", file_time);
 	}
 	
-	file_date = eel_g_date_new_tm (file_time);
+	file_date = g_date_new_dmy (file_time->tm_mday,
+				    file_time->tm_mon + 1,
+				    file_time->tm_year + 1900);
 	
 	today = g_date_new ();
 	g_date_set_time_t (today, time (NULL));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]