forked from enlightenment/efl
[elm_datetime] Fix to parse the POSIX locale format properly.
Summary: In POSIX, some format include extra character like dash, hash, etc, which gives unexpected behaviour. Fix to filter out those character. Signed Off By: Seongjun Yim <se201.yim@samsung.com> Signed Off By: Subodh Kumar <s7158.kumar@samsung.com> @fix Test Plan: 1. Set datetime as POSIX locale. 2. Check the datetime behaviour in elementary_test. Reviewers: raster, shilpasingh Reviewed By: shilpasingh Subscribers: poornima.srinivasan, govi, rajeshps Differential Revision: https://phab.enlightenment.org/D2203
This commit is contained in:
parent
12f6f56f85
commit
79e7d5bcad
|
@ -259,6 +259,11 @@ _parse_format(Evas_Object *obj,
|
|||
{
|
||||
if (fmt_parsing)
|
||||
{
|
||||
if (cur == '_' || cur == '-' || cur == '0' || cur == '^' || cur == '#')
|
||||
{
|
||||
fmt_ptr++;
|
||||
continue;
|
||||
}
|
||||
fmt_parsing = EINA_FALSE;
|
||||
for (idx = 0; idx < ELM_DATETIME_TYPE_COUNT; idx++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue