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 rounding issue with humane.js (i.e. 60 minutes) #420

Closed
wants to merge 1 commit into from

Conversation

tms
Copy link
Contributor

@tms tms commented Mar 11, 2013

Linked Meta topic: “24 hours” Timestamp Should Probably Be “1 day”

Simple rounding issue. I've just patched it in Discourse, but I'll make a note to submit a PR to the source project as well.

@discoursebot
Copy link

You've signed the CLA, tms. Thank you! This pull request is ready for review.

@SamSaffron
Copy link
Member

one sec, this is in an external file, we should be patching it upstream, otherwise it will be wiped if we update.

@tms
Copy link
Contributor Author

tms commented Mar 12, 2013

Yeah, I made a note to submit a patch upstream when I get home. The project has very few updates though, so it shouldn't be an immediate concern.

@SamSaffron
Copy link
Member

oops looks like this can no longer be merged in, can you rebase?

@tms
Copy link
Contributor Author

tms commented Mar 12, 2013

Hmm...it seems #392 removed humane.js altogether, so no sense in rebasing. I'll check to see if there's anything left to do.

@eviltrout
Copy link
Contributor

Closing for now, I think the solution would be fairly different.

@eviltrout eviltrout closed this Mar 12, 2013
CvX added a commit that referenced this pull request May 19, 2021
Since 8ff3fff introduced the addressable gem as a runtime dependency, it's now possible to replace all custom URI encoding logic with addressable's methods.

It does handle some characters differently - e.g. it now doesn't escape URLs in URI fragments (see the added test). Previous escaping behavior was reported as an issue in Discourse.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants