88import {capitalize , computed , onMounted , Ref , ref } from " vue" ;
99import Tooltip from " ../../tooltip.vue" ;
1010import {ArtifactDescription } from " ../../types" ;
11- import {daysBetweenDates , getFutureDate , getPastDate } from " ./utils" ;
11+ import {daysBetweenDates , getFutureDate , getPastDate , formatDate } from " ./utils" ;
1212import {GraphRenderOpts , renderPlots } from " ../../../../graph/render" ;
1313import {GraphData , GraphKind , GraphsSelector } from " ../../../../graph/data" ;
1414import uPlot from " uplot" ;
@@ -55,7 +55,7 @@ function getGraphRange(artifact: ArtifactDescription): GraphRange {
5555 // the last `DAY_RANGE` days.
5656 if (artifact .type === " try" ) {
5757 return {
58- start: getPastDate (date , DAY_RANGE ),
58+ start: formatDate ( getPastDate (date , DAY_RANGE ) ),
5959 end: artifact .commit ,
6060 date: null ,
6161 };
@@ -66,7 +66,7 @@ function getGraphRange(artifact: ArtifactDescription): GraphRange {
6666 // Calculate the end of the range, which is commit date + half of the
6767 // amount of days we want to show. If this date is in the future,
6868 // the server will clip the result at the current date.
69- const end = getFutureDate (date , DAY_RANGE / 2 );
69+ const end = formatDate ( getFutureDate (date , DAY_RANGE / 2 ) );
7070
7171 // Calculate how many days there have been from the commit date
7272 const daysInFuture = Math .min (
@@ -78,7 +78,7 @@ function getGraphRange(artifact: ArtifactDescription): GraphRange {
7878 // the days that will be clipped by the server.
7979 const daysInPast = DAY_RANGE - daysInFuture ;
8080
81- const start = getPastDate (date , daysInPast );
81+ const start = formatDate ( getPastDate (date , daysInPast ) );
8282 return {
8383 start ,
8484 end ,
0 commit comments