Fixed ISO date conversion needed by google spreadsheets.

  Committed on top of a two-line bugfix that's in a previous pull request.