manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kish...@apache.org
Subject svn commit: r1804176 - /manifoldcf/trunk/framework/crawler-ui/src/main/webapp/javascript/mcf.js
Date Sat, 05 Aug 2017 06:34:33 GMT
Author: kishore
Date: Sat Aug  5 06:34:33 2017
New Revision: 1804176

URL: http://svn.apache.org/viewvc?rev=1804176&view=rev
Log:
Added Intl Timezone to 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=1804176&r1=1804175&r2=1804176&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 Sat Aug  5 06:34:33
2017
@@ -457,8 +457,10 @@ $.ManifoldCF.submit=function (form)
   _preLoadContent();
 
   //Add Client Timezone Offset
-  var timezone = new Date().getTimezoneOffset();
-  formData.set('client_timezone_offset',timezone);
+  var timezone_offset = new Date().getTimezoneOffset();
+  var timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
+  formData.set('client_timezone_offset',timezone_offset);
+  formData.set('client_timezone',timezone);
 
   $.ajax({
     type: method,



Mime
View raw message