Fixing a date formatting issue in the rake task