summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/resource/timezone.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/chef/resource/timezone.rb b/lib/chef/resource/timezone.rb
index 9c9396c250..ff0a99d00d 100644
--- a/lib/chef/resource/timezone.rb
+++ b/lib/chef/resource/timezone.rb
@@ -26,7 +26,7 @@ class Chef
provides :timezone
- description "Use the **timezone** resource to change the system timezone on Windows, Linux, and macOS hosts. Timezones are specified in tz database format, with a complete list of available TZ values for Linux and macOS here: <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones> and for Windows here: <https://ss64.com/nt/timezones.html>."
+ description "Use the **timezone** resource to change the system timezone on Windows, Linux, and macOS hosts. Timezones are specified in tz database format, with a complete list of available TZ values for Linux and macOS here: <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones>. On Windows systems run `tzutil /l` for a complete list of valid timezones."
introduced "14.6"
examples <<~DOC
**Set the timezone to UTC**
@@ -35,13 +35,21 @@ class Chef
timezone 'UTC'
```
- **Set the timezone to UTC with a friendly resource name on Linux/macOS**
+ **Set the timezone to America/Los_Angeles with a friendly resource name on Linux/macOS**
```ruby
timezone 'Set the host's timezone to America/Los_Angeles' do
timezone 'America/Los_Angeles'
end
```
+
+ **Set the timezone to PST with a friendly resource name on Windows**
+
+ ```ruby
+ timezone 'Set the host's timezone to PST' do
+ timezone 'Pacific Standard time'
+ end
+ ```
DOC
property :timezone, String,