Setting the location data in Java instead of MySQL

Using an optional date parameter to set the date for the location.  If
it is not provided the current date on the server is used.