Index: LayoutTests/inspector/console/console-timestamp.html |
diff --git a/LayoutTests/inspector/console/console-timestamp.html b/LayoutTests/inspector/console/console-timestamp.html |
index 3ff9fae2f0227505af38ed837f7370121de987fe..06d5b49e270e2a92b798b7303767d48272d5cfd5 100644 |
--- a/LayoutTests/inspector/console/console-timestamp.html |
+++ b/LayoutTests/inspector/console/console-timestamp.html |
@@ -5,7 +5,10 @@ |
<script> |
function test() |
{ |
- var tzOffset = new Date(Date.now()).getTimezoneOffset() * 60 * 1000; |
+ // It is essential that we calculate timezone for this particular moment of time |
+ // otherwise the time zone offset could be different because of DST. |
+ var baseDate = Date.parse("2014-05-13T16:53:20.123Z"); |
+ var tzOffset = new Date(baseDate).getTimezoneOffset() * 60 * 1000; |
var baseTimestamp = 1400000000000 + tzOffset; |
function addMessageWithFixedTimestamp(messageText, timestamp) |