summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authornimesh-msys <nimesh.patni@msystechnologies.com>2018-07-24 13:27:41 +0530
committernimesh-msys <nimesh.patni@msystechnologies.com>2018-07-24 14:59:52 +0530
commite5fe82316403110d61d5eb06bde88778a67540b1 (patch)
treeaebdd0c44671153a8e34fc0a806192873410b043 /lib/chef/resource
parent0584508ea354dade2d3df419d98b5171ff82fb2e (diff)
downloadchef-e5fe82316403110d61d5eb06bde88778a67540b1.tar.gz
Bump version of ISO8601 to latest (0.11.0)
- Verified: No Threats Fixes- MSYS-868 Signed-off-by: nimesh-msys <nimesh.patni@msystechnologies.com>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/windows_task.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/windows_task.rb b/lib/chef/resource/windows_task.rb
index fd4c93907d..b311caf743 100644
--- a/lib/chef/resource/windows_task.rb
+++ b/lib/chef/resource/windows_task.rb
@@ -267,8 +267,8 @@ class Chef
# Converts the number of seconds to an ISO8601 duration format and returns it.
# Ref : https://github.com/arnau/ISO8601/blob/master/lib/iso8601/duration.rb#L18-L23
# e.g.
- # ISO8601::Duration.new(65707200)
- # returns 'P65707200S'
+ # ISO8601::Duration.new(65707200).to_s
+ # returns 'PT65707200S'
def sec_to_dur(seconds)
ISO8601::Duration.new(seconds.to_i).to_s
end