fix figuring out date period from the default period

1 job for chartjs in 3 minutes and 33 seconds (queued for 6 seconds)
Status Name Job ID Coverage
  Test
passed ci #1428123

00:03:33