Index: Source/core/html/forms/TimeInputType.cpp |
diff --git a/Source/core/html/forms/TimeInputType.cpp b/Source/core/html/forms/TimeInputType.cpp |
index ae3203eabc8cc13027c8ed1839528c8ec2e02329..4f751b6f54ce09bee6f2efa5db7903fc544f5cd3 100644 |
--- a/Source/core/html/forms/TimeInputType.cpp |
+++ b/Source/core/html/forms/TimeInputType.cpp |
@@ -73,12 +73,7 @@ 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; |
- |
+ double current = convertToLocalTime(currentTimeMS()); |
DateComponents date; |
date.setMillisecondsSinceMidnight(current); |
double milliseconds = date.millisecondsSinceEpoch(); |