anitab-org / anitab-org/mentorship-backend

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

Offen
#608 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Category: Coding
Vorherrschende Sprache
Python
Sterne
200
Forks
449
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.