From ee90ee562489899ef852c6d0861b6fd0523f9c75 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 18 Jul 2019 09:57:45 +0530 Subject: [PATCH] Fix bug: correct the way to get timestamp from datetime --- hosting/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/views.py b/hosting/views.py index e6763f32..ff45b0db 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -1035,7 +1035,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView, FormView): stripe_api_cus_id, [{"plan": stripe_plan.get( 'response_object').stripe_plan_id}], - int(datetime.datetime.now().timestamp()) + 300 if settings.ADD_TRIAL_PERIOD_TO_SUBSCRIPTION else None) + int(datetime.now().timestamp()) + 300 if settings.ADD_TRIAL_PERIOD_TO_SUBSCRIPTION else None) stripe_subscription_obj = subscription_result.get('response_object') # Check if the subscription was approved and is active if (stripe_subscription_obj is None or