#include <media_content.h>
#include <app_media.h>
#include <time.h>
+#include <ctype.h>
#include "data_recent.h"
#include "datamgr.h"
dm->list = eina_list_append(dm->list, di);
}
+static void _set_up_string(char *str)
+{
+ while (*str) {
+ *str = toupper(*str);
+ str++;
+ }
+}
+
static void _gallery_list_foreach(gpointer data, gpointer user_data)
{
struct recent_data *rdata;
app_media_info *aminfo;
media_info_h media;
int r;
+ char buf[BUF_TITLE_MAX], day[BUF_TITLE_MAX], date[BUF_TITLE_MAX];
if (!data || !user_data) {
_ERR("Invalid arguement");
return;
}
- di = _new_datamgr_item(aminfo->title, aminfo->thumbnail_path, NULL,
+ strftime(date, sizeof(date), "%d %b, %Y", aminfo->content_time);
+ strftime(day, sizeof(day), "%a", aminfo->content_time);
+ _set_up_string(day);
+ snprintf(buf, sizeof(buf), "%s, %s", day, date);
+
+ di = _new_datamgr_item(buf, aminfo->thumbnail_path, NULL,
PACKAGE_MEDIAHUB, KEY_MEDIA, rdata->id,
IMAGE_RECENT_ICON_GALLERY, 1, rdata->time);
if (di)