I am trying to insert date time in sqlite. The date time is coming from server responce (UTC format) in json format.Now When I get date from json as a string field and inserting in sqlite it does not save in utc format. What can be the possible reason I am not getting why is this happening? Is the default behaviour of sqlite and I need to date time format again before ionsertin into sqlite?
This is the date time format in UTC I am getting from response in json
"TransactionDate":"2016-04-05T11:21:16.29Z",
After inserting date time when I am checking in database it is saving in local date time format. like below
2016-04-05 16:03:45.000
Aucun commentaire:
Enregistrer un commentaire