Skip to content

Added limit for days in the future to convert #126

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

Closed
wants to merge 1 commit into from

Conversation

timcosta
Copy link

I added a future conversion limit to the settings, such that you may set a variable similar to allowFuture that will cause timeago to convert future timestamps up to that many days away to words, otherwise it will print a date string.

For example,

    $.timeago.settings.allowFuture = true
    $.timeago.settings.daysInFuture = 3
    $("time.timeago").timeago()

will convert any dates past three days in the future to a full date string. Today is April 23rd, so for April 27th this would print "Saturday, April 27, 2013" instead of "4 days from now".

@rmm5t
Copy link
Owner

rmm5t commented May 3, 2013

This PR has a bunch of regressions in it. It looks like it was based on an old version of timeago.

@rmm5t rmm5t closed this May 3, 2013
@rmm5t
Copy link
Owner

rmm5t commented May 18, 2013

This was added as part of PR #129 and v1.2.0

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