        not report[headers.vacation] and
        not report[headers.sick] and
        not report[headers.unpaid]
-      msg = "You haven\'t recorded any hours on #{date}."
+      msg = "You haven\'t recorded any hours on #{formattedDate}."
     else
       if not report[headers.logged]
         msg = "You haven\'t recorded any paid work time"

    )
    .catch(
      (err) ->
        if res.router_res
          res.router_res.status 500
          res.router_res.json {
            "text": "#{err} - You can see more details on the spreadsheet
                      at #{Organization.spreadsheet.url}"
          }
        else
          errorMsg = Logger.clean err
          Logger.error errorMsg
          Logger.errorToSlack "\"#{errorMsg}\" was returned for
                               #{user.slack}. Punch:\n", res.match.input
          user.directMessage "\n#{errorMsg}\nYou can see more details on 
                              <#{Organization.spreadsheet.url}|the spreadsheet>.",
                             Logger
          Logger.addReaction 'x', res.message
          Logger.removeReaction 'clock4', res.message
    )
    .done()


      sendPunch punch, user, res
    else
      channelName = Logger.getChannelName res.message.user.room
      Logger.addReaction 'x', res.message
      user.directMessage "You cannot punch in ##{channelName}.
                          Try punching in ##{Organization.clockChannel},
                          a designated project channel, or here.",
                         Logger

  sendPunch = (punch, user, res) ->
    if not punch
      Logger.errorToSlack "Somehow, a punch was not generated
                           for \"#{user.slack}\". Punch:\n", res.match.input
      user.directMessage "An unexpected error occured while
                          generating your punch.",
                         Logger
      return
    Organization.spreadsheet.enterPunch(punch, user)
    .then(
