Skip to content

Commit e7574f3

Browse files
feat(indiekit): default time zone to process.env.TZ, else UTC
1 parent fd8eadf commit e7574f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/configuration/application.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Defaults to `"automatic"`.
7373

7474
The time zone for the application. By default this is set to `"UTC"`, however if you want to offset dates according to your time zone you can provide [a time zone name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). This option also accepts a number of other values.
7575

76-
Defaults to `"UTC"`.
76+
Defaults to `process.env.TZ`, else `"UTC"`.
7777

7878
See [customising the time zone →](time-zone.md)
7979

packages/indiekit/config/defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const defaultConfig = {
77
port: process.env.PORT || "3000",
88
themeColor: "#04f",
99
themeColorScheme: "automatic",
10-
timeZone: "UTC",
10+
timeZone: process.env.TZ || "UTC",
1111
ttl: 604_800, // 7 days
1212
},
1313
plugins: [

0 commit comments

Comments
 (0)