-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed Git history to show the correct date and fixed some typos (#1754) #1778
Conversation
The CIs complained about a missing semicolon. I could not spot it in your change; so I have just restarted the builds. Let's see. |
@@ -107,10 +107,12 @@ export class GitHistoryWidget extends GitNavigableListWidget<GitHistoryListNode> | |||
const commits: GitCommitNode[] = []; | |||
for (const commit of changes) { | |||
const fileChangeNodes: GitFileChangeNode[] = []; | |||
const avatarUrl = await this.avartarService.getAvatar(commit.author.email); | |||
const avatarUrl = await this.avatarService.getAvatar(commit.author.email); | |||
const authorDate = new Date(commit.author.timestamp): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:
-> ;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh, it was too early. Thanks!
Wow, I apologized I missed that. I fixed the colon. |
@AlexErling, could you please squash your commits into one? |
Signed-off-by: Alex Erling <alex.erling@gmail.com> Fixed semi colon error. Signed-off-by: Alex Erling <alex.erling@gmail.com>
@kittaakos I squashed them. |
const avatarUrl = await this.avartarService.getAvatar(commit.author.email); | ||
const avatarUrl = await this.avatarService.getAvatar(commit.author.email); | ||
const authorDate = new Date(commit.author.timestamp); | ||
authorDate.setUTCSeconds(commit.author.timestamp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed the code and my recommendation was incorrect. We should do:
const authorDate = new Date(commit.author.timestamp * 1000);
instead of:
const authorDate = new Date(commit.author.timestamp);
authorDate.setUTCSeconds(commit.author.timestamp);
Could you please make an update, @AlexErling?
Closing in favor of #3410. |
Signed-off-by: Alex Erling alex.erling@gmail.com
I was having issues so I just started over and made a new pull request.
Here are the changes!
Closes issue #1754