-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Date() does not validate Unix timestamp with fractional seconds (decimals) #789
Comments
Javascript would truncate it anyway, not sure it's worth accepting something that'll get lost in the conversion. |
It getting truncated should not be reason for rejecting the value as invalid, but rather simply a known behavior (developer's responsibility…not the project's). The fact is that I'll work on a PR for this, but wanted to open the issue so there was visibility as well. |
And you did well checking before making a PR, which is welcome indeed. |
Timestamps generated with fractional seconds (i.e.
date +%s.%N
=>1451427344.877632802
) do not validate as dates.This appears to be a result of
Hoek.isInteger(value)
on /lib/date.js#L61.The text was updated successfully, but these errors were encountered: