diff options
Diffstat (limited to 'talerbank/app/views.py')
-rw-r--r-- | talerbank/app/views.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/talerbank/app/views.py b/talerbank/app/views.py index 22bd618..0d0c47b 100644 --- a/talerbank/app/views.py +++ b/talerbank/app/views.py @@ -791,7 +791,7 @@ def build_history_response(qs, cancelled, user_account): wt_subject=entry.subject, row_id=entry.id, date=dict( - t_m=int(entry.date.timestamp()), + t_s=int(entry.date.timestamp()), t_ms=int(entry.date.timestamp() * 1000) ), ) @@ -936,7 +936,7 @@ def twg_add_incoming(request, user_account, acct_id): { "row_id": wtrans.id, "timestamp": dict( - t_m=(int(wtrans.date.timestamp())), + t_s=(int(wtrans.date.timestamp())), t_ms=(int(wtrans.date.timestamp()) * 1000) ), } @@ -997,7 +997,7 @@ def twg_transfer(request, user_account, acct_id): { "row_id": wtrans.id, "timestamp": dict( - t_m=(int(wtrans.date.timestamp())), + t_s=(int(wtrans.date.timestamp())), t_ms=(int(wtrans.date.timestamp()) * 1000) ), } @@ -1049,7 +1049,7 @@ def twg_history_incoming(request, user_account, acct_id): row_id=item.id, amount=item.amount.stringify(settings.TALER_DIGITS), date=dict( - t_m=(int(item.date.timestamp())), + t_s=(int(item.date.timestamp())), t_ms=(int(item.date.timestamp()) * 1000) ), reserve_pub=rp, @@ -1084,7 +1084,7 @@ def twg_history_outgoing(request, user_account, acct_id): row_id=item.id, amount=item.amount.stringify(settings.TALER_DIGITS), date=dict( - t_m=(int(item.date.timestamp())), + t_s=(int(item.date.timestamp())), t_ms=(int(item.date.timestamp()) * 1000) ), wtid=wtid, |