Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

SQLite select timestamp gives me wrong value

$
0
0

I have an SQLite database running locally on the iPhone simulator. On of the tables in the database has a timestamp column called updated. I am using the application SQLite Pro to examine the contents of the database. I can see clearly that the column updated holds the timestamp 1401880857329.

I execute the following code snippet, which gives data.updated the value 1723262259, which is completly wrong. How come I get the wrong value?

var RS = db.execute("SELECT * FROM events WHERE id = {0}".format(id));
    var data = {
        data : JSON.parse(RS.fieldByName('data')),
        updated : RS.fieldByName('updated')
    };
SDK version is 3.2.2.GA, iOS 7.1.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>