serialization.
I use knex as my query builder, only.
When knex uses my Date object, it will use the local time version.
When all the dates in my DB are in UTC, that doesn't play well when I'm +0200.
Is there any way to tell knex to not serialize using local time?
you can try to set timezone on your connection pool https://github.com/tgriesser/knex/issues/97 or directly set it to the connection (in case you are not using pool) https://github.com/tgriesser/knex/issues/128
Always store dates as unix timestamps!!!!
Обсуждают сегодня