Elm_datetime bug fix patch: Max days in a month is giving wrong values because of...
authorChunEon Park <hermet@hermet.pe.kr>
Thu, 8 Aug 2013 17:59:48 +0000 (02:59 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Thu, 8 Aug 2013 17:59:48 +0000 (02:59 +0900)
src/lib/elm_datetime.c

index b0d7d6cb09bd6c2df112479367f6e02468badf34..afd4aa29394107cb4848f7126b0091a5f62ffb6b 100644 (file)
@@ -576,6 +576,9 @@ _max_days_get(int year,
    localtime_r(&t, &time1);
    time1.tm_year = year;
    time1.tm_mon = month;
+   /* To restrict month wrapping because of summer time in some locales,
+    * disable day light saving mode.*/
+   time1.tm_isdst = 0;
    for (day = MIN_DAYS_IN_MONTH; day <= mapping[ELM_DATETIME_DATE].def_max;
         day++)
      {