-
Notifications
You must be signed in to change notification settings - Fork 56
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
Anyone found a way to handle Dates in Ionic production build? #36
Comments
Is handling date as unix time an option? |
Pls I dont understand. Can you elaborate? My question was based on the limitations listed for Ionic production builds where date types are seen as objects and eventually converted to object columns instead of date columns |
Well, I handle dates as unix time (milliseconds since epoch). Let's say you have:
When you fetch it, you will get date as number type, you can then use Or you can make a getter that returns a date object:
It's just a suggestion |
@AchevezAim Thanks a bunch! |
@dave-ok Is that working for you? I also like to work on this ORM library and Ionic 4. But not started yet. So how's your experience with this ORM and of course Date manipulation? |
Please has anyone found a way around the date datatype problem with ionic production builds. I am building an app which is date-centric and this limitation is a downer cos typeorm has everything I need but this. Please help! I need pointers or suggestions
The text was updated successfully, but these errors were encountered: