From 35918df55cbeab76bf1e316df41bbb67b4c49025 Mon Sep 17 00:00:00 2001 From: sumanth Date: Mon, 29 Apr 2013 16:37:21 +0530 Subject: [PATCH] [elm_datetime.c] Datetime bug fix - Separator for lastly parsed field is not updated in _parse_format() func. Change-Id: I5ac32273445c8ad620015a35a663e5ba4b9a2933 --- src/lib/elm_datetime.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/elm_datetime.c b/src/lib/elm_datetime.c index 0824096..924f1f2 100644 --- a/src/lib/elm_datetime.c +++ b/src/lib/elm_datetime.c @@ -297,6 +297,14 @@ _parse_format(Evas_Object *obj, sep_lookup = EINA_FALSE; fmt_ptr++; } + + //update the separator for last field + if (field) + { + separator[len] = 0; + eina_stringshare_replace(&field->separator, separator); + } + // return the number of valid fields parsed. return location; } -- 2.7.4