Skip to content

Commit

Permalink
1.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeJayTC committed Nov 14, 2019
1 parent 40a2812 commit 708ccb9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Change Log
## 1.0.17
- Fixed an issue where comments date time was shown wrong
##
- Fixed a login issue for Linux users
- Potential fix for -> [Issue: 2](https://github.com/Teamwork/vscode-projects/issues/2)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "https://twitter.com/Teamwork"
}
],
"version": "1.0.16",
"version": "1.0.17",
"engines": {
"vscode": "^1.33.0"
},
Expand Down
6 changes: 3 additions & 3 deletions src/teamworkProjectsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class TeamworkProjectsApi{
}

var dateFormat = require('dateformat');
todo['created-on'] = dateFormat(Date.parse(todo['created-on']), "dd-MM-yyyy");
todo['created-on'] = dateFormat(Date.parse(todo['created-on']), "dd-mm-yyyy");
todo['description'] = todo['description'].replace('\'','´');
todo['content'] = todo['content'].replace('\'','´');

Expand All @@ -257,7 +257,7 @@ export class TeamworkProjectsApi{
var newBody = turndownService.turndown(element['html-body']);
newBody = newBody.replace('\'','´');
element.body = newBody;
element["datewritten"] = dateFormat(Date.parse(element.datetime), "dd-MM-yyyy hh:mm");
element["datewritten"] = dateFormat(Date.parse(element.datetime), "dd-mm-yyyy hh:MM");
});

todo["comments"] = comments.data.comments;
Expand Down Expand Up @@ -302,7 +302,7 @@ export class TeamworkProjectsApi{
todo["estimated"] = estimated;

timeEntries.data.timeEntries.forEach(element => {
element["date"] = dateFormat(Date.parse(element["date"]), "dd-MM-yyyy hh:mm");
element["date"] = dateFormat(Date.parse(element["date"]), "dd-mm-yyyy hh:MM");
totalHours += element["hours"];
totalMinutes += element["minutes"];
});
Expand Down
Binary file added twp-1.0.17.vsix
Binary file not shown.

0 comments on commit 708ccb9

Please sign in to comment.