Skip to content

Commit

Permalink
Merge pull request #14 from carapai/master
Browse files Browse the repository at this point in the history
Version bump up and Date time bug correction
  • Loading branch information
carapai authored Dec 12, 2019
2 parents 253168a + 34c9de7 commit 34d8614
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/manifest.webapp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"appType": "APP",
"name": "Data Import Wizard",
"version": "1.0.5",
"version": "1.0.6",
"description": "Data Importer Wizard",
"icons": {
"48": "favicon.ico"
Expand Down
9 changes: 4 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ if (process.env.NODE_ENV === 'development') {
// config.baseUrl = `http://localhost:8080/api`;
// config.baseUrl = 'https://play.dhis2.org/2.30/api'
// config.baseUrl = 'https://ds.dev.hispuganda.org/api'
config.baseUrl = 'https://ds.dev.hispuganda.org/api';
// config.baseUrl = 'https://programs.psiug.org/psi/api'
// config.baseUrl = 'https://ds.dev.hispuganda.org/api';
config.baseUrl = 'https://programs.psiug.org/psi/api'
// config.headers = { Authorization: 'Basic YWRtaW46ZGlzdHJpY3Q=' }; // admin
// config.headers = { Authorization: 'Basic SGlzcDpBcGlAMjAxOSE=' };// dev pace
config.headers = { Authorization: 'Basic SGlzcDpBcGlAMjAxOSE=' };// dev pace
// config.baseUrl = `http://dhis2-staging.kuunika.org:8087/api`;
// config.headers = { Authorization: 'Basic bWJvbmdlbmljaGl6b25kYTpBYmlreWwyMkA=' };
config.headers = { Authorization: 'Basic c3RlcGhlbjpIaXNwQDIwMTk=' };
// config.headers = { Authorization: 'Basic c3RlcGhlbjpIaXNwQDIwMTk=' };
} else {
let baseUrl = '';
let urlArray = window.location.pathname.split('/');
Expand All @@ -29,7 +29,6 @@ if (process.env.NODE_ENV === 'development') {
} else {
baseUrl = '/';
}

baseUrl = window.location.protocol + '//' + window.location.host + baseUrl;
config.baseUrl = baseUrl + 'api'
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export const validateValue = (dataType, value, optionSet) => {
}
} else if (validText(dataType, value)) {
if (dataType === 'DATETIME') {
return moment(value).format('YYYY-MM-DD HH:mm:ss');
return moment(value).format('YYYY-MM-DDTHH:mm');
} else if (dataType === 'DATE') {
return moment(value).format('YYYY-MM-DD');
} else if (dataType === 'TIME') {
Expand Down

0 comments on commit 34d8614

Please sign in to comment.