forked from enlightenment/efl
efl_ui_datepicker: do not substract anything fom mday
out of the documentation of struct tm: int tm_mday; /* Day. [1-31] */ shifting this range one up results in day 32 beeing selectable, but 1 not beeing selectable. With this commit we could have again working CI. Differential Revision: https://phab.enlightenment.org/D10992
This commit is contained in:
parent
745eea61b0
commit
3a75d76001
|
@ -18,7 +18,7 @@
|
|||
Efl_Time t = efl_datetime_manager_value_get(pd->dt_manager); \
|
||||
pd->cur_date[DATEPICKER_YEAR] = t.tm_year + 1900; \
|
||||
pd->cur_date[DATEPICKER_MONTH] = t.tm_mon + 1; \
|
||||
pd->cur_date[DATEPICKER_DAY] = t.tm_mday + 1; \
|
||||
pd->cur_date[DATEPICKER_DAY] = t.tm_mday; \
|
||||
} while (0)
|
||||
|
||||
#define DATE_SET() \
|
||||
|
@ -26,7 +26,7 @@
|
|||
Efl_Time t = { 0 }; \
|
||||
t.tm_year = pd->cur_date[DATEPICKER_YEAR] - 1900; \
|
||||
t.tm_mon = pd->cur_date[DATEPICKER_MONTH] - 1; \
|
||||
t.tm_mday = pd->cur_date[DATEPICKER_DAY] - 1; \
|
||||
t.tm_mday = pd->cur_date[DATEPICKER_DAY]; \
|
||||
t.tm_sec = 0; \
|
||||
efl_datetime_manager_value_set(pd->dt_manager, t); \
|
||||
} while (0)
|
||||
|
|
Loading…
Reference in New Issue