Add tech research

This commit is contained in:
Rui Hildt 2020-03-20 15:52:21 +00:00
parent acd92753ca
commit 3a6fef6192
1 changed files with 17 additions and 0 deletions

17
research.md Normal file
View File

@ -0,0 +1,17 @@
## Proposed Tech stack
- NodeJS
- Express
- Postgresql
- Luxon
## How to deal with date and time in PostgreSQL?
- use `datetime` datatype without timezone (datetime with timezone is using offset, which doesn't work well with DST)
- store datetime in UTC
- add timezone information separately, use `Full time zone name` (human friendly)
- use `ISO 8601` format, which is human friendly to read and supported by every library
See:
- https://www.moesif.com/blog/technical/timestamp/manage-datetime-timestamp-timezones-in-api/
- https://www.postgresql.org/docs/current/datatype-datetime.html