Fix incorrect setting for datetime widget 81/100181/1
authorkiso.chang <kiso.chang@samsung.com>
Fri, 25 Nov 2016 08:07:02 +0000 (17:07 +0900)
committerkiso.chang <kiso.chang@samsung.com>
Fri, 25 Nov 2016 08:07:34 +0000 (17:07 +0900)
Change-Id: I4993fa4b9d502295f3e604ce8ff3478cf4a214a7
Signed-off-by: kiso.chang <kiso.chang@samsung.com>
src/common/utils.c
src/view/system/view_clock.c

index 204370f..873de0e 100755 (executable)
@@ -443,12 +443,6 @@ Evas_Object *utils_add_datetime(Evas_Object *parent, const char *part,
                return NULL;
        }
 
-       elm_datetime_field_visible_set(dtime, ELM_DATETIME_YEAR, field_year);
-       elm_datetime_field_visible_set(dtime, ELM_DATETIME_MONTH, field_month);
-       elm_datetime_field_visible_set(dtime, ELM_DATETIME_DATE, field_date);
-       elm_datetime_field_visible_set(dtime, ELM_DATETIME_HOUR, field_hour);
-       elm_datetime_field_visible_set(dtime, ELM_DATETIME_MINUTE, field_minute);
-       elm_datetime_field_visible_set(dtime, ELM_DATETIME_AMPM, field_ampm);
 
        /*@TODO: Temporary */
        elm_object_scale_set(dtime, 1.0 / APP_BASE_SCALE);
index 9822927..a4a2c29 100755 (executable)
@@ -476,7 +476,6 @@ static void _show(void *data)
                elm_object_style_set(priv->time_part, "time_layout");
                elm_datetime_format_set(priv->time_part, "%d/%b/%Y %I:%M %p");
        }
-       elm_datetime_format_set(priv->date_part, "%x");
 
        elm_datetime_value_set(priv->date_part, (Elm_Datetime_Time *)&current_time);
        elm_datetime_value_set(priv->time_part, (Elm_Datetime_Time *)&current_time);