Fix log timestamp precision (CC-75)

pull/49/head
HardiReady 2019-02-02 23:52:02 +01:00
parent 8eb7d150ab
commit 557d0de60a
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "opt-cc", "name": "opt-cc",
"version": "1.8.5", "version": "1.8.6",
"author": "Florian Hartwich <hardi@noarch.de>", "author": "Florian Hartwich <hardi@noarch.de>",
"private": true, "private": true,
"scripts": { "scripts": {

View File

@ -448,6 +448,7 @@ const getFullTimeDate = (date, timeString) => {
const time = timeString.split(':'); const time = timeString.split(':');
returnDate.setHours(time[0]); returnDate.setHours(time[0]);
returnDate.setMinutes(time[1]); returnDate.setMinutes(time[1]);
returnDate.setSeconds(time[2]);
return returnDate; return returnDate;
}; };

View File

@ -90,7 +90,7 @@ export class WarSubmitComponent {
error => { error => {
this.spinnerService.deactivate(); this.spinnerService.deactivate();
this.loading = false; this.loading = false;
const errorMsg = JSON.parse(error._body).error.message; const errorMsg = error._body ? JSON.parse(error._body).error.message : error.error.error.message;
this.snackBarService.showError('Error: '.concat(errorMsg), 15000); this.snackBarService.showError('Error: '.concat(errorMsg), 15000);
}); });
} }