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

Throw an error when I18n.strftime() takes an invalid date #383

Merged
merged 1 commit into from
Jan 6, 2016
Merged

Throw an error when I18n.strftime() takes an invalid date #383

merged 1 commit into from
Jan 6, 2016

Commits on Jan 6, 2016

  1. Throw an error when I18n.strftime takes an invalid date

    Currently, I18n.strftime produces a wrongly formatted string when it takes an invalid date object. For example,
    
    ```
    I18n.strftime(new Date('foo'), '%Y%m%d');
    //=> 'NaNaNaN'
    ```
    shinnn committed Jan 6, 2016
    Configuration menu
    Copy the full SHA
    f0d4d31 View commit details
    Browse the repository at this point in the history