Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hughdavenport opened this issue Oct 12, 2016 · 0 comments
Open

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

hughdavenport opened this issue Oct 12, 2016 · 0 comments

Comments

@hughdavenport
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant