-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Gnucash exported the transactions using UTC time, while the Gnucash software is set to UTC+2.
Therefore transactions that occured on "2016/08/02" were exported as "2016/08/01 22:00" and interpreted as "2016/08/01".
I used this hack in gnucash.py
to adjust:
import calendar
# ...
def parse_time(time):
dt = datetime.strptime(time, "%Y%m%d%H%M%S")
timestamp = calendar.timegm(dt.timetuple()) + 7200
return datetime.utcfromtimestamp(timestamp)
Maybe this could be made configurable using a CLI switch?
Metadata
Metadata
Assignees
Labels
No labels