Skip to content

Commit 15f8033

Browse files
authored
Merge pull request #712 from smortex/fix-strftime-deprecation-warning
Fix strftime() deprecation warning
2 parents 26cb2e4 + 0c284b9 commit 15f8033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/install/windows.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
$_puppet_run_wait = undef
5858
}
5959

60-
$_timestamp = strftime('%Y_%m_%d-%H_%M')
60+
$_timestamp = Timestamp().strftime('%Y_%m_%d-%H_%M')
6161
$_logfile = windows_native_path("${facts['env_temp_variable']}/puppet-${_timestamp}-installer.log")
6262

6363
notice ("Puppet upgrade log file at ${_logfile}")

0 commit comments

Comments
 (0)