Documentation
¶
Overview ¶
Package timezone sets the process default timezone from environment variables. Call InitFromEnv immediately after loading .env so time.Local and time.Now match APP_TIMEZONE or TZ.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFromEnv ¶
func InitFromEnv() error
InitFromEnv sets TZ for the process from APP_TIMEZONE (if set), else TZ, else UTC. The value must be a valid IANA zone name (e.g. America/New_York, UTC).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.