Set php.ini's date.timezone = "UTC"

refs #6842
This commit is contained in:
Alexander Klimov 2014-10-21 12:19:32 +02:00
parent 81d49db566
commit 82226066c6
1 changed files with 4 additions and 0 deletions

View File

@ -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'),