From cc6afa8d2abd1d7a540fd9f471b09228cf4ceaaa Mon Sep 17 00:00:00 2001
From: PCoder <purple.coder@yahoo.co.uk>
Date: Wed, 3 Apr 2019 19:22:27 +0200
Subject: [PATCH] Fix datetime issue: pass unix timestamp instead of datetime

---
 hosting/management/commands/fetch_stripe_bills.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hosting/management/commands/fetch_stripe_bills.py b/hosting/management/commands/fetch_stripe_bills.py
index 8f35aa8c..e6dd9536 100644
--- a/hosting/management/commands/fetch_stripe_bills.py
+++ b/hosting/management/commands/fetch_stripe_bills.py
@@ -31,7 +31,7 @@ class Command(BaseCommand):
                         # fetch only invoices which is created after
                         # mhb.created, because we already have invoices till
                         # this date
-                        created_gt = {'gt': mhb.created}
+                        created_gt = {'gt': mhb.created.timestamp()}
 
                     all_invoices_response = stripe_utils.get_all_invoices(
                         user.stripecustomer.stripe_id,