From 05aea1b40bb6d3d819f8158b843760b40c54b959 Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 9 Oct 2014 14:33:53 -0400 Subject: [PATCH] stop rounding the date! --- frontend/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/forms.py b/frontend/forms.py index 98780ae7..9df5f7ae 100644 --- a/frontend/forms.py +++ b/frontend/forms.py @@ -506,7 +506,7 @@ def getManageCampaignForm ( instance, data=None, initial=None, *args, **kwargs ) new_deadline= new_deadline_date + timedelta(hours=23,minutes=59) if self.instance: if self.instance.status == 'ACTIVE': - return self.instance.deadline.date() + return self.instance.deadline if new_deadline_date - now() > timedelta(days=int(settings.UNGLUEIT_LONGEST_DEADLINE)): raise forms.ValidationError(_('The chosen closing date is more than %s days from now' % settings.UNGLUEIT_LONGEST_DEADLINE)) elif new_deadline - now() < timedelta(days=0):