Ver código fonte

Fix Dates On timeshare edit

master
30117125 4 anos atrás
pai
commit
d4716b64eb
3 arquivos alterados com 14 adições e 4 exclusões
  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 Ver arquivo

@@ -1048,6 +1048,16 @@ export default {
1048 1048
           this.indiv.spouseCellnumber = null;
1049 1049
         }
1050 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 1061
         //console.log(this.sellItem.ownerObject);
1052 1062
         console.log(this.sellItem);
1053 1063
         console.log(JSON.stringify(this.sellItem));

+ 2
- 2
src/main.js Ver arquivo

@@ -40,8 +40,8 @@ Vue.use(VueAnalytics, {
40 40
 
41 41
 Vue.config.productionTip = false;
42 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 45
 //axios.defaults.baseURL = "http://localhost:8080/";
46 46
 
47 47
 Vue.prototype.$axios = axios;

+ 2
- 2
vue.config.js Ver arquivo

@@ -3,8 +3,8 @@ module.exports = {
3 3
     proxy: {
4 4
       "/api": {
5 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 8
         changeOrigin: true
9 9
       },
10 10
       "/nph-srep": {

Carregando…
Cancelar
Salvar