OpenConext-Attic / OpenConext-vm

:warning: Obsolete respository, archive only :zzz:
4 stars 9 forks source link

Default timezone configuration of SR dependencies #14

Closed surfnet-niels closed 10 years ago

surfnet-niels commented 10 years ago

When installing ServiceRegistry as part of the OpenConext VM, a component complains about the php timezone not being set

PHP Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in /opt/www/OpenConext-serviceregistry/vendor/jms/serializer-bundle/JMS/SerializerBundle/DependencyInjection/Configuration.php on line 66

This could of cause be fixed by setting the correct timezone in the config file stated above, but a better solution is probably to set the correct timezone in php.ini as part of the php install?

Please advise

lucasvanlierop commented 10 years ago

Timezone should be configured in php.ini, doing this as part of the VM php install is the way to go.

surfnet-niels commented 10 years ago

Ok I will fix that in the VM install