DS-1490: Adjusted how current date is calculated to avoid dependency on tomcat/jaxb.