fix exception caused by datetime.datetime  confusion while rendering likes