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>
This commit is contained in:
kenstir 2024-08-27 05:11:54 -04:00 committed by GitHub
parent 65d25c56c9
commit 77e1c2c305
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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