Summary: this errors all the time otherwise
Reviewers: devilhorns
Reviewed By: devilhorns
Subscribers: devilhorns, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D9396
if (!pd->is_24hour)
{
- if (pd->cur_time[TIMEPICKER_HOUR] >= 12)
+ if (pd->cur_time[TIMEPICKER_HOUR] > 12)
{
//TODO: gets text from strftime.
efl_text_set(pd->ampm, "PM");
else
{
efl_text_set(pd->ampm, "AM");
- efl_ui_range_value_set(pd->hour, pd->cur_time[TIMEPICKER_HOUR] + 12);
+ efl_ui_range_value_set(pd->hour, pd->cur_time[TIMEPICKER_HOUR]);
}
}