| Index: Source/core/html/forms/TimeInputType.cpp
|
| diff --git a/Source/core/html/forms/TimeInputType.cpp b/Source/core/html/forms/TimeInputType.cpp
|
| index f91bf233176d4331c7c43d1bfc2845e2a8e4b20d..8f7169e9fba17a00c3e85b56becb8facb955081e 100644
|
| --- a/Source/core/html/forms/TimeInputType.cpp
|
| +++ b/Source/core/html/forms/TimeInputType.cpp
|
| @@ -73,14 +73,8 @@ const AtomicString& TimeInputType::formControlType() const
|
|
|
| Decimal TimeInputType::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.setMillisecondsSinceMidnight(current);
|
| + date.setMillisecondsSinceMidnight(convertToLocalTime(currentTimeMS()));
|
| double milliseconds = date.millisecondsSinceEpoch();
|
| ASSERT(std::isfinite(milliseconds));
|
| return Decimal::fromDouble(milliseconds);
|
|
|