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

jfthomps pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/vcl.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0eda523  VCL-1119 - wrong day submitted for future reservations made 
in the evening
0eda523 is described below

commit 0eda523fcfa634bf011126f04d785e7536e6feb2
Author: Josh Thompson <[email protected]>
AuthorDate: Fri Apr 26 14:12:37 2019 -0400

    VCL-1119 - wrong day submitted for future reservations made in the evening
    
    requests.js: modified getDeployData: removed adding timezone offset to 
computed date value as the values supplied in the deploystartday select object 
have already been offset for user's timezone; so, the offset was being applied 
twice
---
 web/js/requests.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/web/js/requests.js b/web/js/requests.js
index 8cfe95f..4a28222 100644
--- a/web/js/requests.js
+++ b/web/js/requests.js
@@ -435,8 +435,7 @@ function getDeployData(waitonly) {
                else {
                        var tmp = dojo.byId('deploystartday').value;
                        tmp = new Date(tmp * 1000);
-                       var offset = tmp.getTimezoneOffset() * 60000;
-                       var date = new Date(tmp.getTime() + offset);
+                       var date = new Date(tmp.getTime());
                        var hour = parseInt(dojo.byId('deployhour').value);
                        var m = dojo.byId('deploymeridian').value;
                        if(m == 'pm' && hour < 12)

Reply via email to