fixed django datetimes handling