Browse Source

Fix Dates On timeshare edit

master
30117125 4 years ago
parent
commit
d4716b64eb
3 changed files with 14 additions and 4 deletions
  1. 10
    0
      src/components/timeshare/sell/contentSection.vue
  2. 2
    2
      src/main.js
  3. 2
    2
      vue.config.js

+ 10
- 0
src/components/timeshare/sell/contentSection.vue View File

1048
           this.indiv.spouseCellnumber = null;
1048
           this.indiv.spouseCellnumber = null;
1049
         }
1049
         }
1050
         this.sellItem.ownerObject = this.indiv;
1050
         this.sellItem.ownerObject = this.indiv;
1051
+        var today = new Date();
1052
+        var dd = String(today.getDate()).padStart(2, "0");
1053
+        var mm = String(today.getMonth() + 1).padStart(2, "0"); //January is 0!
1054
+        var yyyy = today.getFullYear();
1055
+
1056
+        today = mm + "/" + dd + "/" + yyyy;
1057
+        var isoDate = new Date(today).toISOString();
1058
+        var fixedDate = new Date(isoDate).setHours(+4);
1059
+        var pubDate = new Date(fixedDate).toISOString();
1060
+        this.sellItem.pulbishedDate = pubDate;
1051
         //console.log(this.sellItem.ownerObject);
1061
         //console.log(this.sellItem.ownerObject);
1052
         console.log(this.sellItem);
1062
         console.log(this.sellItem);
1053
         console.log(JSON.stringify(this.sellItem));
1063
         console.log(JSON.stringify(this.sellItem));

+ 2
- 2
src/main.js View File

40
 
40
 
41
 Vue.config.productionTip = false;
41
 Vue.config.productionTip = false;
42
 //axios.defaults.baseURL = "http://localhost:57260";
42
 //axios.defaults.baseURL = "http://localhost:57260";
43
-//axios.defaults.baseURL = "https://www.pvsl.co.za:86/";
44
-axios.defaults.baseURL = "http://training.provision-sa.com:82/";
43
+axios.defaults.baseURL = "https://www.pvsl.co.za:86/";
44
+//axios.defaults.baseURL = "http://training.provision-sa.com:82/";
45
 //axios.defaults.baseURL = "http://localhost:8080/";
45
 //axios.defaults.baseURL = "http://localhost:8080/";
46
 
46
 
47
 Vue.prototype.$axios = axios;
47
 Vue.prototype.$axios = axios;

+ 2
- 2
vue.config.js View File

3
     proxy: {
3
     proxy: {
4
       "/api": {
4
       "/api": {
5
         //target: "http://localhost:57260/",
5
         //target: "http://localhost:57260/",
6
-        target: "http://training.provision-sa.com:82/",
7
-        //target: "https://www.pvsl.co.za:86/",
6
+        //target: "http://training.provision-sa.com:82/",
7
+        target: "https://www.pvsl.co.za:86/",
8
         changeOrigin: true
8
         changeOrigin: true
9
       },
9
       },
10
       "/nph-srep": {
10
       "/nph-srep": {

Loading…
Cancel
Save