This is not a bug in the software, it is caused by a setting in your PHP.ini file.
in the php.ini file for php 5.3 there is a setting for :
date.timezone
if this is not set properly, you will get the error you are reporting.
The first error is causing the headers already sent error.
see the following php.net page for details:
datetime.configuration.php