Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/models/hasTimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class hasTimes extends Base {
*/
createTime(time, created_at) {
var date = new Date(created_at);
var spentAt = date.getUTCFullYear()+"-"+date.getUTCMonth()+"-"+date.getUTCDate();
var spentAt = date.getUTCFullYear()+"-"+date.getUTCMonth()+1+"-"+date.getUTCDate();
return this.post(`projects/${this.data.project_id}/${this._type}/${this.iid}/notes`, {
body: '/spend '+Time.toHumanReadable(time, this.config.get('hoursPerDay'), '[%sign][%days>d ][%hours>h ][%minutes>m ][%seconds>s]'+' '+spentAt),
});
Expand Down
6 changes: 4 additions & 2 deletions src/output/invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ class invoice extends Base {
return "";
}
if(!Array.isArray(data)) {
return data;
return data.replace(/_/g, " ");
}
return data.join(separator);
let data2 = [];
data.forEach(el => data2.push(this.concat(el, separator)));
return data2.join(separator);
}

makeStats() {
Expand Down