Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1806)

Unified Diff: Source/wtf/DateMath.h

Issue 394903004: document.lastModified should consider user's local time zone (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and take review comments into consideration Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/shadow/DateTimeFieldElements.cpp ('k') | Source/wtf/DateMath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/DateMath.h
diff --git a/Source/wtf/DateMath.h b/Source/wtf/DateMath.h
index a388c35fe112f9a4f5fd9762e8d698cc0e13fe11..b23e99223d4417706015165d3516e40b871700f8 100644
--- a/Source/wtf/DateMath.h
+++ b/Source/wtf/DateMath.h
@@ -78,9 +78,8 @@ WTF_EXPORT int dayInYear(double ms, int year);
WTF_EXPORT int monthFromDayInYear(int dayInYear, bool leapYear);
WTF_EXPORT int dayInMonthFromDayInYear(int dayInYear, bool leapYear);
-// Returns offset milliseconds for UTC and DST.
-WTF_EXPORT int32_t calculateUTCOffset();
-WTF_EXPORT double calculateDSTOffset(double ms, double utcOffset);
+// Returns milliseconds with UTC and DST.
+WTF_EXPORT double convertToLocalTime(double ms);
} // namespace WTF
@@ -98,7 +97,6 @@ using WTF::msToYear;
using WTF::secondsPerMinute;
using WTF::parseDateFromNullTerminatedCharacters;
using WTF::makeRFC2822DateString;
-using WTF::calculateUTCOffset;
-using WTF::calculateDSTOffset;
+using WTF::convertToLocalTime;
#endif // DateMath_h
« no previous file with comments | « Source/core/html/shadow/DateTimeFieldElements.cpp ('k') | Source/wtf/DateMath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698