chokkarg / android-mileage

Automatically exported from code.google.com/p/android-mileage
0 stars 0 forks source link

Dateformat of exported csv data cannot be imported again #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Device with german formattings.
2. Export Data to csv file.
3. Import Data again from that csv file.

Expected behavior:
All exported data should be imported correctly

Actual behavior:
The dates in the exported csv file is formatted in the correct german format 
(DD.MM.YYYY): "10.02.2011"
The importer does not accept dates with dots "." and only with a time after the 
date.

Mileage version: 3.0.7
Android version: 2.2.1
Device: Desire HD (German)

Cause:
======
As the DATE_FORMAT object in file "CsvExportActivity.java" [line 55]:
final DateFormat DATE_FORMAT = 
android.text.format.DateFormat.getDateFormat(mActivity);
formats the dates according to the API reference "in short form (such as 
12/31/1999) according to the current locale and the user's date-order 
preference".
The DateFormat Adapter only has formats like "MM/dd/yyyy HH:mm:ss".

Original issue reported on code.google.com by djdagob...@gmail.com on 14 Mar 2011 at 3:32

GoogleCodeExporter commented 8 years ago
Thanks for the very thorough bug report! I'll fix this for the next update.

Original comment by evancharlton on 14 Mar 2011 at 8:04

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/android-mileage/source/detail?r=1f32b4992ddf1f0551f6eb0
9c28bd19b005e5d49

Will be included in 3.1.0

Original comment by evancharlton on 17 Apr 2011 at 8:20