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

Timestamp with decimals cannot be converted to date on native devices #1639

Open
amin-nas opened this issue Sep 20, 2024 · 0 comments
Open
Assignees

Comments

@amin-nas
Copy link
Contributor

Test case:
https://studio.ensembleui.com/app/9YfZUVl3SC82UZ5Mnf2e/screen/Bmd5kqWsrbqTk5SOG9mh

This works on web but not on iOS/Android:

var ts = 1726503759230.452;
var date = new Date( ts );

Workaround is to remove decimals.

var ts = 1726503759230.452;
var date = new Date( Math.floor(ts));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants