Order Item expire date is DateField, should be DateTimeField

Create issue
Issue #1503 new
Former user created an issue

Order Item has a field, expire_date. This is set as a DateField. It needs to be a DateTimeField, as the method calc_expire_date returns a datetime. It creates an issue when use_tz=true in django, as the datetime.datetime.now() will be timezone aware, but the value returned from expire_date wont be (it will be UTC by default), so expire date on the subscription product can be +1 day incorrectly, if the timezone of the Django instance is < UTC.

Comments (1)

  1. Log in to comment