We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93584f6 commit 6eeea9dCopy full SHA for 6eeea9d
src/models/hasTimes.js
@@ -24,7 +24,7 @@ class hasTimes extends Base {
24
*/
25
createTime(time, created_at) {
26
var date = new Date(created_at);
27
- var spentAt = date.getUTCFullYear()+"-"+date.getUTCMonth()+"-"+date.getUTCDate();
+ var spentAt = date.getUTCFullYear()+"-"+date.getUTCMonth()+1+"-"+date.getUTCDate();
28
return this.post(`projects/${this.data.project_id}/${this._type}/${this.iid}/notes`, {
29
body: '/spend '+Time.toHumanReadable(time, this.config.get('hoursPerDay'), '[%sign][%days>d ][%hours>h ][%minutes>m ][%seconds>s]'+' '+spentAt),
30
});
0 commit comments