Skip to content
Merged
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
Develop fix month (is 0 based)
  • Loading branch information
Andreas Müller committed Feb 25, 2021
commit e6de105f9e8d8bfbb239401cfb872101b648d1e0
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()+1+"-"+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