[datetime_input_popup.c] Bug fix in datetime module: in case of user set 24hr format...
authorsumanth <sumanth.m@samsung.com>
Thu, 4 Jul 2013 18:51:12 +0000 (00:21 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Mon, 8 Jul 2013 06:47:38 +0000 (15:47 +0900)
Change-Id: I2f0dd31e9d206a22758d1f8cf793f7a6ba5ef142

src/modules/datetime_input_popup/datetime_input_popup.c

index b450461..b0d39ae 100644 (file)
@@ -531,7 +531,8 @@ _set_spinner_special_values(Popup_Module_Data *popup_mod)
                                    month + 1, month_arr[month]);
 
    fmt = popup_mod->mod_data.field_format_get(popup_mod->mod_data.base, ELM_DATETIME_AMPM);
-   if (fmt)
+   // if AM/PM format exists, set its string as spinner special value.
+   if (fmt && strcmp(fmt, "%"))
      {
         curr_time.tm_hour = 0;
         strftime(am_str, BUFF_SIZE, fmt, &curr_time);