Skip to content

Commit bd2ed69

Browse files
authored
tz fixes (#33)
1 parent 5445c28 commit bd2ed69

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
* Default timezone now falls back to UTC when `TZ` is unset, preventing PostgreSQL from rendering `timezone = ''` and failing to start. (#31)
13+
1014
## [17.2-v1.0.0] - TBD
1115

1216
### Added

postgres/initdb/00-render-config.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ apply_network_allow_entries() {
4444
fi
4545
}
4646

47+
: "${TZ:=UTC}"
4748
: "${POSTGRES_LISTEN_ADDRESSES:=0.0.0.0}"
4849
: "${POSTGRES_MAX_CONNECTIONS:=200}"
4950
: "${PG_SHARED_BUFFERS:=1GB}"
@@ -65,6 +66,7 @@ apply_network_allow_entries() {
6566
: "${POSTGRES_SSL_SELF_SIGNED_DAYS:=730}"
6667

6768
export \
69+
TZ \
6870
POSTGRES_LISTEN_ADDRESSES \
6971
POSTGRES_MAX_CONNECTIONS \
7072
PG_SHARED_BUFFERS \

0 commit comments

Comments
 (0)