Skip to content

Transaction enter_date isn't in correct format for django #6

@hughdavenport

Description

@hughdavenport

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 2ff14e6.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions