Skip to content

Commit

Permalink
Do not format dates
Browse files Browse the repository at this point in the history
  • Loading branch information
Markionium committed Feb 7, 2017
1 parent a63e693 commit 2231966
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ angular.module('whereIsMyMech', ['ngRoute', 'ui.select'])
$httpProvider.interceptors.push(($q) => {
return {
request(config) {
if (config.url && /^https:\/\/test.datim.org/.test(config.url)) {
if (config.url && /^https:\/\/dev.datim.org/.test(config.url)) {
config.headers = Object.assign({}, config.headers, developmentHeaders);
}
return config;
Expand Down Expand Up @@ -110,7 +110,7 @@ angular.module('whereIsMyMech', ['ngRoute', 'ui.select'])
initMenu()
.then((manifest) => {
angular.module('whereIsMyMech')
.constant('DHIS_BASE_URL', process.env.NODE_ENV === 'production' ? manifest.activities.dhis.href : 'https://test.datim.org');
.constant('DHIS_BASE_URL', process.env.NODE_ENV === 'production' ? manifest.activities.dhis.href : 'https://dev.datim.org');
})
.then(() => angular.bootstrap(document.querySelector('html'), ['whereIsMyMech']))
.catch((e) => window.console.log('Failed to bootstrap the app', e));
4 changes: 2 additions & 2 deletions src/partner-finder/partner-finder.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ <h3><span ng-bind="mechanism.mechanism"></span><a ng-href="#!/mechanism-finder?q
<table>
<tr>
<th>Agency</th><td ng-bind="mechanism.agency"></td>
<th>Start</th><td ng-bind="partnerFinder.formatDate(mechanism.startdate)"></td>
<th>End</th><td ng-bind="partnerFinder.formatDate(mechanism.enddate)"></td>
<th>Start</th><td ng-bind="mechanism.startdate"></td>
<th>End</th><td ng-bind="mechanism.enddate"></td>
</tr>
</table>
</div>
Expand Down

0 comments on commit 2231966

Please sign in to comment.