Skip to content

Commit

Permalink
fix: Documentation for timezone (#1394)
Browse files Browse the repository at this point in the history
* fix: zones.md

* fix: remove change due to prettier
  • Loading branch information
kupuma-ru21 committed Jun 14, 2023
1 parent 75115a4 commit 57aad3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/zones.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,14 @@ start.plus({ hours: 24 }).hour; //=> 11, DST pushed forward an hour
By default, Luxon creates DateTimes in the system's zone. However, you can override this behavior globally:

```js
Settings.defaultZoneName = "Asia/Tokyo";
Settings.defaultZone = "Asia/Tokyo";
DateTime.local().zoneName; //=> 'Asia/Tokyo'

Settings.defaultZoneName = "utc";
Settings.defaultZone = "utc";
DateTime.local().zoneName; //=> 'UTC'

// you can reset by setting to 'system'

Settings.defaultZoneName = "system";
Settings.defaultZone = "system";
DateTime.local().zoneName; //=> 'America/New_York'
```

0 comments on commit 57aad3f

Please sign in to comment.