From: Hokwon Song Date: Fri, 7 Jun 2013 08:45:00 +0000 (+0900) Subject: Fix the defect of calculating time X-Git-Tag: accepted/tizen/20130912.081851^2~257^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce18c271fe6272c7bee2008a3d7a7d81aabbe1b1;p=platform%2Fframework%2Fnative%2Fappfw.git Fix the defect of calculating time Change-Id: I3891cb10a313c38b7eb7ad7fc2bdf80e98107260 Signed-off-by: Hokwon Song --- diff --git a/src/locales/FLclTimeZone.cpp b/src/locales/FLclTimeZone.cpp index 9e52f2a..3b302a9 100644 --- a/src/locales/FLclTimeZone.cpp +++ b/src/locales/FLclTimeZone.cpp @@ -372,7 +372,7 @@ TimeZone::StandardTimeToUtcTime(const DateTime& standardTime, int rawOffset) { ClearLastResult(); DateTime dt = standardTime; - dt.AddMinutes(rawOffset); + dt.AddMinutes(-rawOffset); return dt; } @@ -394,7 +394,7 @@ TimeZone::WallTimeToUtcTime(const DateTime& wallTime, int rawOffset, int dstOffs { ClearLastResult(); DateTime dt = wallTime; - dt.AddMinutes(rawOffset + dstOffset); + dt.AddMinutes(-(rawOffset + dstOffset)); return dt; }