sqlite3_stmt* statement;
gint result;
gchar* sqlcmd;
+ time_t current_time;
GtkTreeIter iter;
GtkTreeIter root_iter;
}
g_free (sqlcmd);
+ current_time = time (NULL);
+
while ((result = sqlite3_step (statement)) == SQLITE_ROW)
{
KatzeItem* item;
if (req_day == 0)
{
- time_t current_time;
gint age;
gchar token[50];
gchar* sdate;
item = katze_item_new ();
katze_item_set_added (item, day);
- current_time = time (NULL);
age = sokoke_days_between ((time_t*)&date, ¤t_time);
/* A negative age is a date in the future, the clock is probably off */