Bug #3456: fix multiple date ranges output