You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by so...@apache.org on 2019/10/29 15:02:12 UTC

[wicket] branch WICKET-6712-js-time-zone updated: Accidental copy/paste is removed

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch WICKET-6712-js-time-zone
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/WICKET-6712-js-time-zone by this push:
     new 3c8a507  Accidental copy/paste is removed
3c8a507 is described below

commit 3c8a5076b63ac1bdca5520cdbb0d03e79133ca28
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Tue Oct 29 22:01:51 2019 +0700

    Accidental copy/paste is removed
---
 .../main/java/org/apache/wicket/markup/html/pages/wicket-browser-info.js | 1 -
 1 file changed, 1 deletion(-)

diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/pages/wicket-browser-info.js b/wicket-core/src/main/java/org/apache/wicket/markup/html/pages/wicket-browser-info.js
index 07e8bb5..2118296 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/pages/wicket-browser-info.js
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/pages/wicket-browser-info.js
@@ -57,7 +57,6 @@
 					info.screenWidth = window.screen.width;
 					info.screenHeight = window.screen.height;
 					info.screenColorDepth = window.screen.colorDepth;
-					info.utcOffset = (new Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0).getTimezoneOffset() / -60);
 				}
 				var jsTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone
 				info.jsTimeZone = jsTimeZone ? jsTimeZone : null;;