projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4ee74e
)
Elm_datetime bug fix patch: Max days in a month is giving wrong values because of...
author
ChunEon Park
<hermet@hermet.pe.kr>
Thu, 8 Aug 2013 17:59:48 +0000
(
02:59
+0900)
committer
ChunEon Park
<hermet@hermet.pe.kr>
Thu, 8 Aug 2013 17:59:48 +0000
(
02:59
+0900)
src/lib/elm_datetime.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_datetime.c
b/src/lib/elm_datetime.c
index b0d7d6cb09bd6c2df112479367f6e02468badf34..afd4aa29394107cb4848f7126b0091a5f62ffb6b 100644
(file)
--- a/
src/lib/elm_datetime.c
+++ b/
src/lib/elm_datetime.c
@@
-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++)
{