Index: Source/core/html/forms/BaseDateAndTimeInputType.cpp |
diff --git a/Source/core/html/forms/BaseDateAndTimeInputType.cpp b/Source/core/html/forms/BaseDateAndTimeInputType.cpp |
index 309d013f5feb1770f9ae170948a45a7d7920976b..c7938864977930efbb4c334fa16db3f627601db8 100644 |
--- a/Source/core/html/forms/BaseDateAndTimeInputType.cpp |
+++ b/Source/core/html/forms/BaseDateAndTimeInputType.cpp |
@@ -90,11 +90,7 @@ String BaseDateAndTimeInputType::rangeUnderflowText(const Decimal& minimum) cons |
Decimal BaseDateAndTimeInputType::defaultValueForStepUp() const |
{ |
- double ms = currentTimeMS(); |
- double utcOffset = calculateUTCOffset(); |
- double dstOffset = calculateDSTOffset(ms, utcOffset); |
- int offset = static_cast<int>((utcOffset + dstOffset) / msPerMinute); |
- return Decimal::fromDouble(ms + (offset * msPerMinute)); |
+ return Decimal::fromDouble(convertToLocalTime(currentTimeMS())); |
} |
bool BaseDateAndTimeInputType::isSteppable() const |