From 82226066c61e4a9ef5c416fee3e72ea0c37eb3bc Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Tue, 21 Oct 2014 12:19:32 +0200 Subject: [PATCH] Set php.ini's date.timezone = "UTC" refs #6842 --- .vagrant-puppet/modules/php/manifests/init.pp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vagrant-puppet/modules/php/manifests/init.pp b/.vagrant-puppet/modules/php/manifests/init.pp index 1a8e31746..efb0a9946 100644 --- a/.vagrant-puppet/modules/php/manifests/init.pp +++ b/.vagrant-puppet/modules/php/manifests/init.pp @@ -23,6 +23,10 @@ class php { require => Package['apache'], notify => Service['apache'] } + -> exec { 'php-timezone': + command => 'sed -re $\'s#^;?(date\\.timezone =).*$#\\1 "UTC"#\' -i /etc/php.ini', + notify => Service['apache'], + } file { '/etc/php.d/error_reporting.ini': content => template('php/error_reporting.ini.erb'),