Set VSA datepicker to correct UTC date

Background

I tested this branch locally and when I open this URL in the browser:

http://localhost:3000/-/analytics/value_stream_analytics?group_id=flightjs&project_ids%5B%5D=6&created_after=2020-01-08&created_before=2020-02-13

I get the following date range:

Wrong to date

  • To date should be 2020-02-13

Proposed solution

Date range picker fix

It looks like the shared daterange component for cycle (value stream) analytics and productivity might not take timezones into account. We will need to investigate if this is due to a date being generated from the FE or the BE from a deep link.

  • @ekigbo started a discussion: (+4 comments)

    Hi @ealcantara are you free to review this MR for me? This MR is based on backend changes in !23235 (merged), so i've marked the files that you can ignore reviewing here.

Support full UTC timestamp

Edited by Ezekiel Kigbo