Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

client, templates: Round time properly #871

Merged
merged 2 commits into from
Sep 8, 2018
Merged

client, templates: Round time properly #871

merged 2 commits into from
Sep 8, 2018

Conversation

ghost
Copy link

@ghost ghost commented Sep 5, 2018

Fixes the incorrect ban times.
It is rounding, so if you do 4 hours and 29 minutes, you will get 4 hours, and 5 hours with 4 hours and 31 minutes. 4 hours and 30 minutes (in the field) will result in 4 hours, because by it is actually 4 hours, 29 minutes and 59 seconds.

@ghost ghost requested a review from bakape September 5, 2018 09:47
@ghost
Copy link
Author

ghost commented Sep 5, 2018

So, the test is failing because apparently https://github.com/pierrec/lz4 just did a breaking change with pierrec/lz4#33
Would it be possible to have travis use go 1.11?
Same for my other PR.

@bakape
Copy link
Owner

bakape commented Sep 5, 2018 via email

@ghost
Copy link
Author

ghost commented Sep 5, 2018

You could probably just merge both and it would be fine, I tested both pretty thoroughly.
Do what you feel is best though, of course.

@bakape
Copy link
Owner

bakape commented Sep 5, 2018 via email

@bakape
Copy link
Owner

bakape commented Sep 5, 2018 via email

@ghost
Copy link
Author

ghost commented Sep 5, 2018

That's fair, honestly I think it's a good idea, and not just in my case.

@bakape bakape merged commit 6cdac9c into master Sep 8, 2018
@ghost ghost deleted the dev/fix branch September 8, 2018 13:28
nekto-nekto pushed a commit to 0-chan-ru/tetuca that referenced this pull request May 22, 2021
client, templates: Round time properly
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants