Skip to content

Latest commit

 

History

History
25 lines (10 loc) · 380 Bytes

README.md

File metadata and controls

25 lines (10 loc) · 380 Bytes

Steps taken to setup:

yarn

psql

create database test_timezone;

Once setup:

  1. Run the migration
  2. run node main.js or run the seed to see the same result.
  3. View in the database, the knex.fn.now() provides a localtime instead of timestamp with tz.

Mini script for iteration:

yarn knex migrate:rollback && yarn knex migrate:latest && yarn knex seed:run