| 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..6a15af4671f1a45ef409f66c2a089258afe09c62 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();
|
|
|