Skip to content

Commit

Permalink
Merge pull request #712 from smortex/fix-strftime-deprecation-warning
Browse files Browse the repository at this point in the history
Fix strftime() deprecation warning
  • Loading branch information
mhashizume authored Apr 12, 2024
2 parents 26cb2e4 + 0c284b9 commit 15f8033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/install/windows.pp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
$_puppet_run_wait = undef
}

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

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

0 comments on commit 15f8033

Please sign in to comment.