Fix #1166: Dates incorrectly showed in the web output (correctly in DB).