gnucash-django icon indicating copy to clipboard operation
gnucash-django copied to clipboard

Transaction enter_date isn't in correct format for django

Open hughdavenport opened this issue 9 years ago • 0 comments

So my newly created database has the enter_date format of u'20161007212330', which is then treated as a DateTimeField in django, but it isn't in the correct format (YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ]).

gnucash 2.6.13 on mac os x. gnucash-django commit 2ff14e68cd0236a5c675d202909d8d5fff5abc72.

The error it gets is Exception Value: Caught OverflowError while rendering: signed integer is greater than maximum Happens in account_block.html,

47          {% if account.last_transaction_date %}

Fails here:

 File "/root/gnucash-django/local/lib/python2.7/site-packages/django/db/backends/util.py" in typecast_date
  68.     return s and datetime.date(*map(int, s.split('-'))) or None # returns None if s is null

hughdavenport avatar Oct 12 '16 02:10 hughdavenport