Commit c65ced47 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '243437-fix-master' into 'master'

Fix date spec failure merge_request_analytics/graphql/throughput_chart_query_builder_spec.js

Closes #243437

See merge request gitlab-org/gitlab!40816
parents ecf1a375 bc05b4f9
...@@ -702,13 +702,7 @@ export const approximateDuration = (seconds = 0) => { ...@@ -702,13 +702,7 @@ export const approximateDuration = (seconds = 0) => {
* @return {Date} the date object from the params * @return {Date} the date object from the params
*/ */
export const dateFromParams = (year, month, day) => { export const dateFromParams = (year, month, day) => {
const date = new Date(); return new Date(year, month, day);
date.setFullYear(year);
date.setMonth(month);
date.setDate(day);
return date;
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment