summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/Source/WebCore/html/MonthInputType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/Source/WebCore/html/MonthInputType.cpp')
-rw-r--r--src/3rdparty/webkit/Source/WebCore/html/MonthInputType.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/3rdparty/webkit/Source/WebCore/html/MonthInputType.cpp b/src/3rdparty/webkit/Source/WebCore/html/MonthInputType.cpp
index 06e3726..9390a07 100644
--- a/src/3rdparty/webkit/Source/WebCore/html/MonthInputType.cpp
+++ b/src/3rdparty/webkit/Source/WebCore/html/MonthInputType.cpp
@@ -82,9 +82,7 @@ String MonthInputType::serializeWithMilliseconds(double value) const
double MonthInputType::defaultValueForStepUp() const
{
double current = currentTimeMS();
- double utcOffset = calculateUTCOffset();
- double dstOffset = calculateDSTOffset(current, utcOffset);
- int offset = static_cast<int>((utcOffset + dstOffset) / msPerMinute);
+ int offset = calculateLocalTimeOffset(current).offset / msPerMinute;
current += offset * msPerMinute;
DateComponents date;