@@ -853,7 +853,8 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
853
853
before ( ) {
854
854
if ( ! this . data ) {
855
855
const start = findQueryParam ( "start" ) ;
856
- return start ? start . substring ( 0 , 7 ) : "???" ;
856
+ // 0,10 extracts "YYYY-MM-DD".
857
+ return start ? start . substring ( 0 , 10 ) : "???" ;
857
858
}
858
859
if ( this . data . a . pr ) {
859
860
return `#${ this . data . a . pr } ` ;
@@ -862,12 +863,15 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
862
863
return this . formatDate ( this . data . a . date ) ;
863
864
}
864
865
866
+ // 0,7 extracts 7 chars from the git commit id/tag, which is probably
867
+ // enough to distinguish it. (It is only for display purposes.)
865
868
return this . data . a . commit . substring ( 0 , 7 ) ;
866
869
} ,
867
870
after ( ) {
868
871
if ( ! this . data ) {
869
872
const end = findQueryParam ( "end" ) ;
870
- return end ? end . substring ( 0 , 7 ) : "???" ;
873
+ // 0,10 extracts "YYYY-MM-DD".
874
+ return end ? end . substring ( 0 , 10 ) : "???" ;
871
875
}
872
876
873
877
if ( this . data . b . pr ) {
@@ -877,6 +881,8 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
877
881
return this . formatDate ( this . data . b . date ) ;
878
882
}
879
883
884
+ // 0,7 extracts 7 chars from the git commit id/tag, which is probably
885
+ // enough to distinguish it. (It is only for display purposes.)
880
886
return this . data . b . commit . substring ( 0 , 7 ) ;
881
887
} ,
882
888
stat ( ) {
0 commit comments