[elm_datetime] Corrected the logic for datetime values comparison.
authorSubodh Kumar <s7158.kumar@samsung.com>
Tue, 24 Mar 2015 22:00:44 +0000 (07:00 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 24 Mar 2015 22:00:44 +0000 (07:00 +0900)
commit12f6f56f853acd30f66ad906a9803153fc73d08c
treecfe6f26b6594d686232a4583e9e19dda5f8f1ab5
parent1925ec3b8e920eb31488d96240b591ef7f32d31e
[elm_datetime] Corrected the logic for datetime values comparison.

Summary:
Datetime value should be compared earlier to avoid unnecessary code execution.
Also added logic for single field comparion which will avoid to compare all fields when field limit is set.

Signed Off By: Seongjun Yim <se201.yim@samsung.com>
Signed Off By: Hyunseok Yang <hs0219.yang@samsung.com>
Signed Off By: Subodh Kumar <s7158.kumar@samsung.com>

Test Plan: NA

Reviewers: shilpasingh, raster

Reviewed By: shilpasingh, raster

Subscribers: poornima.srinivasan, govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D2202
legacy/elementary/src/lib/elm_datetime.c