raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=40ff4a11fccb4d4e5dc78ee5eb171c693c53cd31

commit 40ff4a11fccb4d4e5dc78ee5eb171c693c53cd31
Author: Subodh Kumar <s7158.ku...@samsung.com>
Date:   Wed Mar 25 07:09:23 2015 +0900

    [elm_datetime] Fix to consider second field while comparing datetime values.
    
    Summary:
    Some app like calendar, they heavily depend on the value of datetime,so to 
ensure accuracy
    second field is considered while comparing datetime values.
    
    @fix
    
    Test Plan: NA
    
    Reviewers: shilpasingh, raster
    
    Reviewed By: shilpasingh, raster
    
    Subscribers: poornima.srinivasan, govi, rajeshps
    
    Differential Revision: https://phab.enlightenment.org/D2204
---
 src/lib/elm_datetime.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_datetime.c b/src/lib/elm_datetime.c
index d2a7a7c..dd1826c 100644
--- a/src/lib/elm_datetime.c
+++ b/src/lib/elm_datetime.c
@@ -46,7 +46,8 @@
      &(tmptr)->tm_mon,                   \
      &(tmptr)->tm_mday,                  \
      &(tmptr)->tm_hour,                  \
-     &(tmptr)->tm_min}
+     &(tmptr)->tm_min,                  \
+     &(tmptr)->tm_sec}
 
 // default limits for individual fields
 static Format_Map mapping[ELM_DATETIME_TYPE_COUNT] = {
@@ -589,7 +590,7 @@ _date_cmp(struct tm *time1,
    DATETIME_TM_ARRAY(timearr1, time1);
    DATETIME_TM_ARRAY(timearr2, time2);
 
-   for (idx = 0; idx < ELM_DATETIME_TYPE_COUNT - 1; idx++)
+   for (idx = 0; idx < ELM_DATETIME_TYPE_COUNT; idx++)
      {
         if (*timearr1[idx] != *timearr2[idx])
           return EINA_FALSE;

-- 


Reply via email to