diff --git a/manifests/core/update.pp b/manifests/core/update.pp index 85a96bdaf20a560a64e6f4137cef0007220296a4..1e1a158a58ee8bb2e4062188c5a85ef42086cb07 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",