Hi,
I am using dd-plist to parse a .plist file and store the datas in an Android SQLite Database. Everything works well, except the dates.
When I parse a <date> marker with a SimpleDateFormat, the date is already transformed. Example:
.plist Input: <date>2014-09-01T11:07:20Z</date>
Output: Mon Sep 01 11:07:20 UTC+00:00 2014
But the problem is that I cannot parse the date with a SimpleDateFormat to store it inside the database (with an INTEGER type), because the format depends on the device.
This is what I get on my Samsung Galaxy Tab:
Mon Sep 01 11:07:20 UTC+00:00 2014
This is what I get on my Nexus 7:
Mon Sep 01 11:07:20 CEST 2014
As you can see, the TimeZone format is not the same, and few other tests confirm that it changes depending on the device configuration.
So my question is: is it possible to parse a <date> marker as a "raw" String (and not as formatted date), to get the following format: 2014-09-01T11:07:20Z and not the device date: Mon Sep 01 11:07:20 UTC+00:00 2014 ?
Thanks by advance!
Jorisk