Replaced the g_date_strftime function by a strftime solution