hermet pushed a commit to branch master.
commit 1319188f968eb178181fa60a96d3c3f8a2312339
Author: ChunEon Park <[email protected]>
Date: Fri Aug 9 02:59:48 2013 +0900
Elm_datetime bug fix patch: Max days in a month is giving wrong values
because of summer time adjustment
---
src/lib/elm_datetime.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/lib/elm_datetime.c b/src/lib/elm_datetime.c
index b0d7d6c..afd4aa2 100644
--- 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++)
{
--
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk