manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kish...@apache.org
Subject svn commit: r1804289 - /manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js
Date Mon, 07 Aug 2017 06:23:28 GMT
Author: kishore
Date: Mon Aug  7 06:23:27 2017
New Revision: 1804289

URL: http://svn.apache.org/viewvc?rev=1804289&view=rev
Log:
Final Fix for adding Client Timezone

Modified:
    manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js

Modified: manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js?rev=1804289&r1=1804288&r2=1804289&view=diff
==============================================================================
--- manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js (original)
+++ manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js Mon Aug  7 06:23:27
2017
@@ -434,7 +434,12 @@ $.ManifoldCF.loadContent=function (url)
   $('.overlay,#loader').show();
   console.log("URL: " + url);
   _preLoadContent();
-  $('#content').load(decodeURIComponent(url),function (response,status,xhr)
+
+  //Add Client Timezone Offset
+  var timezone_offset = new Date().getTimezoneOffset();
+  var timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
+
+  $('#content').load(decodeURIComponent(url), { client_timezone_offset : timezone_offset,
client_timezone : timezone } ,function (response,status,xhr)
   {
     if (status == 'error')
     {



Mime
View raw message