From 3a6fef6192ecf3165a3e8c398495bcc7cd4460db Mon Sep 17 00:00:00 2001 From: Rui Hildt Date: Fri, 20 Mar 2020 15:52:21 +0000 Subject: [PATCH] Add tech research --- research.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 research.md diff --git a/research.md b/research.md new file mode 100644 index 0000000..55464ce --- /dev/null +++ b/research.md @@ -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 \ No newline at end of file