From 00be272110c7e204c6ec2b2a889b0cc12bc17206 Mon Sep 17 00:00:00 2001 From: Fabien COMBERNOUS <fabien.combernous@adullact.org> Date: Tue, 14 May 2019 12:05:19 +0200 Subject: [PATCH] remove deprecate usage of function strftime --- manifests/core/update.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/core/update.pp b/manifests/core/update.pp index 85a96bd..1e1a158 100644 --- a/manifests/core/update.pp +++ b/manifests/core/update.pp @@ -40,9 +40,9 @@ define wordpress::core::update ( # 3. update database # 4. update language - $_date = strftime('%Y-%m-%d') + $_date = Timestamp.new.strftime('%F', 'current') - # Export and Archive is done as root because directory $wparchives_path + # Export and Archive is done as root because directory $wparchives_path # is with mode 0700 and owned by root. exec { "${wp_servername} > Export database before upgrade" : command => "${wpcli_bin} --allow-root --path=${wp_root} db export", -- GitLab