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

Fix calculation of displayed time, show UTC offset #22136

Merged
merged 2 commits into from
Jun 1, 2017

Conversation

simonbyrne
Copy link
Contributor

Fixes #22103.

@kshyatt kshyatt added display and printing Aesthetics and correctness of printed representations of objects. libgit2 The libgit2 library or the LibGit2 stdlib module labels May 30, 2017
print(io, "Name: ", sig.name, ", ")
print(io, "Email: ", sig.email, ", ")
print(io, "Time: ", Dates.unix2datetime(sig.time + 60*sig.time_offset))
@printf(io, "%+03i:%02i", divrem(sig.time_offset,60)...)
Copy link
Member

Choose a reason for hiding this comment

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

Missing space between arguments to divrem?

Copy link
Member

Choose a reason for hiding this comment

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

Fixed

@KristofferC KristofferC merged commit 8758659 into master Jun 1, 2017
@KristofferC KristofferC deleted the sb/libgit2/time-utc branch June 1, 2017 20:39
tkelman pushed a commit that referenced this pull request Jun 3, 2017
* Fix calculation of displayed time, show UTC offset

Fixes #22103.

* add space to argument

(cherry picked from commit 8758659)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display and printing Aesthetics and correctness of printed representations of objects. libgit2 The libgit2 library or the LibGit2 stdlib module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants