Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

AlexErling
Copy link

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

@kittaakos
Copy link
Contributor

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):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

: -> ;

Copy link
Contributor

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!

@AlexErling
Copy link
Author

Wow, I apologized I missed that. I fixed the colon.

@kittaakos
Copy link
Contributor

@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>
@AlexErling
Copy link
Author

@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);
Copy link
Contributor

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?

@kittaakos
Copy link
Contributor

Closing in favor of #3410.

@kittaakos kittaakos closed this Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants