Fixed issues with sending and date retrieval from php