mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
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:
parent
65d25c56c9
commit
77e1c2c305
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue