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

date got displayed dirty even if correct on DB #253

Closed
sdmdev opened this issue Apr 29, 2015 · 6 comments
Closed

date got displayed dirty even if correct on DB #253

sdmdev opened this issue Apr 29, 2015 · 6 comments
Labels

Comments

@sdmdev
Copy link

sdmdev commented Apr 29, 2015

I am using wp8.1 silverlight and cordova (target wp8).
Everything works fine in my app but I am experience one weird thing:
After inserting one date for instance 1430323815 (the timestamp of now in sec.), it is saved properly on my DB (I verified it using windows power tool) but when I get its value, I receive something like -516517568. Please is there a way to fix it? If I do a query select a row with date='1430323815' the executing returns an entry but still with some date in this -516517568. Please any hint is appreciated.
If I do that on another new table I cannot reproduce this issue.

@brodycj
Copy link
Contributor

brodycj commented May 1, 2015

The "wp8" version is using the CSharp-SQLite library, which is a somewhat heroic port of sqlite to C# but some stability issues had been reported. If you target Windows Phone 8.1, I highly recommend you consider using the windows target which now supports both Windows 8.1 and Windows Phone 8.1.

@sdmdev
Copy link
Author

sdmdev commented May 4, 2015

thanks brodybits, but what if I dont want to change target? What is your suggestion in this case?

@brodycj
Copy link
Contributor

brodycj commented May 5, 2015

From your description it sounds like you found a special case where the retrieval of your date goes wrong. If you cannot reproduce this case then I would like to treat this as a minor issue, i.e. non-blocking.

In terms of the wp8 target, I do want to keep supporting it and fix some known issues since it is needed for PhoneGap build.

If you want to investigate this issue, we have to debug how the csharp-sqlite classes handle the query on your database. Unfortunately, I cannot promise when or even if I will really have time to work on this.

@jlegido
Copy link

jlegido commented Jun 12, 2015

Hi there.

This issue may be another occurrence of #195 ?

@brodycj
Copy link
Contributor

brodycj commented Jun 12, 2015

This issue may be another occurrence of #195 ?

According to the OP:

If I do that on another new table I cannot reproduce this issue.

@brodycj
Copy link
Contributor

brodycj commented Jun 12, 2015

No reproducable scenario. If you find a reproducable scenario, or can even provide a database or database dump that can be used to demonstrate the problem, please report it and I will take another look.

@brodycj brodycj closed this as completed Jun 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants