elm_datetime: Parses the format recursively. 23/145723/2
authorWoochan Lee <wc0917.lee@samsung.com>
Wed, 23 Aug 2017 11:02:38 +0000 (20:02 +0900)
committerwoochan lee <wc0917.lee@samsung.com>
Wed, 23 Aug 2017 11:40:59 +0000 (11:40 +0000)
commit409441cfd8cdcfe4fef896cce82fdaa2b31be55b
tree22951293164590b14ffcfe0e0b563cc054be0140
parent3c2230a6141792a487be51dac872982dc8a2cde4
elm_datetime: Parses the format recursively.

Summary:
Some of locale formats convert as extension format.
For example,
             uk_UA d_t_fmt is "%a, %d-%b-%Y %X %z".
             The %X will convert as %T.
             The %T format has to convert one more time to convert as %H:%M:%S.

ref : https://lh.2xlibre.net/locale/uk_UA/

We need to parse the format recursively to support that kind of case.

@fix

Test Plan:
Change the locale as uk_UA.
Run elementary_test -> datetime
See the time field is not appear.

Reviewers: jpeg, cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5021

Change-Id: Ie088a4558d3688542e9bcf43dacd1a9a339b433e
src/lib/elm_datetime.c