anitab-org / anitab-org/mentorship-backend

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

Ouverte
#608 7 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Category: Coding
Langage dominant
Python
Étoiles
200
Forks
449
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

`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).

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.