-
Notifications
You must be signed in to change notification settings - Fork 92
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
Timestamps not converted to Date anymore #238
Comments
Signed-off-by: Philipp Kinschel <p.kinschel@nousguide.com>
@bajtos, can you confirm if this is expected behavior or not? If we don't expect a number to coerce, then I think there should be a warning in the docs. |
Interesting. So if my understanding is correct, when we have |
This is actually tricky. Both I have a question though. How to handle numeric values in scientific notation (e.g. /cc @STRML |
Yes, I am closing this issue as fixed (in LoopBack 3.0). |
Timestamps passed as parameter to remote methods worked in older versions:
e.g.:
from=1440631417
or in milliseconds
from=1440631417000
It fails to instantiate a new Date() due a missing conversion from String to Number.
I've made a workaround in Shared-Method.js, but you might want to solve this somewhere else (HttpContext) or differently.
thanks
The text was updated successfully, but these errors were encountered: