Use dates from request; Php 5.3 compat fix