Skip to content

Commit 6eeea9d

Browse files
author
Andreas Müller
committed
fixed month
1 parent 93584f6 commit 6eeea9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/hasTimes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class hasTimes extends Base {
2424
*/
2525
createTime(time, created_at) {
2626
var date = new Date(created_at);
27-
var spentAt = date.getUTCFullYear()+"-"+date.getUTCMonth()+"-"+date.getUTCDate();
27+
var spentAt = date.getUTCFullYear()+"-"+date.getUTCMonth()+1+"-"+date.getUTCDate();
2828
return this.post(`projects/${this.data.project_id}/${this._type}/${this.iid}/notes`, {
2929
body: '/spend '+Time.toHumanReadable(time, this.config.get('hoursPerDay'), '[%sign][%days>d ][%hours>h ][%minutes>m ][%seconds>s]'+' '+spentAt),
3030
});

0 commit comments

Comments
 (0)