anitab-org / anitab-org/mentorship-backend

Refactor to use one type of time - time.time() - and also using UNIX timestamp everywhere.

Abierto
#608 7 comentarios 0 reacciones 0 asignados Ver en GitHub
Category: Coding
Lenguaje dominante
Python
Estrellas
200
Forks
449
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

`creation_date` in the mentorship relation (app/api/dao/mentorship_relation.py line) which is using .timestamp() after datetime.utcnow() where as in the `email verification date` for user register (app/api/dao/user.py), only uses datetime.utcnow() without .timestamp().

**To Reproduce**

Steps to reproduce the behavior:

[This PR comment](https://github.com/anitab-org/mentorship-backend/pull/556#issuecomment-631427249) has a clear description of the issue

**Expected behavior**
All datetimes used (across all endpoints should be standardized).

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.