Index: Source/core/html/forms/MonthInputType.cpp |
diff --git a/Source/core/html/forms/MonthInputType.cpp b/Source/core/html/forms/MonthInputType.cpp |
index 27800a016bab4cc02d5457a11ebe97d24956cd83..b03c04ed3ad16135bfb0c4d6364e9b1a4dc9acab 100644 |
--- a/Source/core/html/forms/MonthInputType.cpp |
+++ b/Source/core/html/forms/MonthInputType.cpp |
@@ -86,12 +86,7 @@ String MonthInputType::serializeWithMilliseconds(double value) const |
Decimal MonthInputType::defaultValueForStepUp() const |
{ |
- double current = currentTimeMS(); |
- double utcOffset = calculateUTCOffset(); |
- double dstOffset = calculateDSTOffset(current, utcOffset); |
- int offset = static_cast<int>((utcOffset + dstOffset) / msPerMinute); |
- current += offset * msPerMinute; |
- |
+ double current = convertToLocalTime(currentTimeMS()); |
DateComponents date; |
date.setMillisecondsSinceEpochForMonth(current); |
double months = date.monthsSinceEpoch(); |