codinguser / gnucash-android

Gnucash for Android mobile companion application.
Apache License 2.0
1.23k stars 540 forks source link

Removing time zone in TIME_FORMATTER to comply with desktop gnucash's… #854

Closed DunLug closed 3 years ago

DunLug commented 4 years ago

Hello everyone, I had some issue when importing my account file generated with gnucash on windows, version 3.5 (build 3.5+ (2019-03-30). After doing a debug, it seems that the date format in my xml file doesn't include a timezone while the TIME_FORMATTER value looks for it. I removed the timezone to make importation working, but I don't know if some other versions would include timezone in the xml file.

codinguser commented 3 years ago

Hi @DunLug The latest version of Gnucash (4.2) still spits out dates like "2020-01-01 21:29:35 +0000" when creating XML files. So I'm not sure if that was an issue with 3.5 which is now changed or not. Can you confirm if this is still an issue?

DunLug commented 3 years ago

With gnucash 4.2 the format is

2020-12-02 10:59:00 +0000 With gnucash 3.5 it was 2015-11-03 10:59:00 I checked the import on android using the 2.4.0 version on google play and it works fine. I close the ticket while this issue was resolved with newest versions