From 77e1c2c30561f2f3adcbd4680b1ec66e0c6f6a29 Mon Sep 17 00:00:00 2001 From: kenstir Date: Tue, 27 Aug 2024 05:11:54 -0400 Subject: [PATCH] docs(contributing): add note about postgres timezones (#1550) * docs: add note that postgres tests require UTC * Update CONTRIBUTING.md --------- Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com> --- CONTRIBUTING.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 02fd6f6..12936cc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -155,6 +155,12 @@ Then run all tests: ```shell go test ./... -tags=integration ``` +> [!NOTE] +> If you have issues with tests not passing, it might be related to timezones. The `test_postgres` container runs in timezone UTC. If your host is not configured in timezone UTC, then the tests will fail. To configure an Ubuntu host, execute: +> +> ```shell +> sudo timedatectl set-timezone Etc/UTC +> ``` ## Build Docker image @@ -186,4 +192,3 @@ go run test/mockindexer/main.go * Go to Settings -> IRC and toggle the IRC network `Mock Indexer` * Add a new Filter or add the indexer to an existing filter * Open a new tab and navigate to [http://localhost:3999](http://localhost:3999) and put the example announce in the input then hit enter -