| Index: Source/core/html/forms/MonthInputType.cpp
|
| diff --git a/Source/core/html/forms/MonthInputType.cpp b/Source/core/html/forms/MonthInputType.cpp
|
| index 0cdc7da8837b547442c906340722c0cb1a0dd028..11b9f1169b662aceefc9da70e66d82604867e381 100644
|
| --- a/Source/core/html/forms/MonthInputType.cpp
|
| +++ b/Source/core/html/forms/MonthInputType.cpp
|
| @@ -86,14 +86,8 @@ 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;
|
| -
|
| DateComponents date;
|
| - date.setMillisecondsSinceEpochForMonth(current);
|
| + date.setMillisecondsSinceEpochForMonth(convertToLocalTime(currentTimeMS()));
|
| double months = date.monthsSinceEpoch();
|
| ASSERT(std::isfinite(months));
|
| return Decimal::fromDouble(months);
|
|
|