fixed the change to pdfs folder
added date_default_timezone_set