@@ -197,6 +197,7 @@ export class TimelineWebviewView extends WebviewViewBase<State> {
197197 private async getState ( current : Context ) : Promise < State > {
198198 const access = await this . container . git . access ( PlusFeatures . Timeline ) ;
199199 const dateFormat = this . container . config . defaultDateFormat ?? 'MMMM Do, YYYY h:mma' ;
200+ const shortDateFormat = this . container . config . defaultDateShortFormat ?? 'short' ;
200201 const period = current . period ?? defaultPeriod ;
201202
202203 if ( ! access . allowed ) {
@@ -207,6 +208,7 @@ export class TimelineWebviewView extends WebviewViewBase<State> {
207208 title : 'src/app/index.ts' ,
208209 uri : Uri . file ( 'src/app/index.ts' ) . toString ( ) ,
209210 dateFormat : dateFormat ,
211+ shortDateFormat : shortDateFormat ,
210212 access : access ,
211213 } ;
212214 }
@@ -216,6 +218,7 @@ export class TimelineWebviewView extends WebviewViewBase<State> {
216218 period : period ,
217219 title : 'There are no editors open that can provide file history information' ,
218220 dateFormat : dateFormat ,
221+ shortDateFormat : shortDateFormat ,
219222 access : access ,
220223 } ;
221224 }
@@ -242,6 +245,7 @@ export class TimelineWebviewView extends WebviewViewBase<State> {
242245 title : 'No commits found for the specified time period' ,
243246 uri : current . uri . toString ( ) ,
244247 dateFormat : dateFormat ,
248+ shortDateFormat : shortDateFormat ,
245249 access : access ,
246250 } ;
247251 }
@@ -292,6 +296,7 @@ export class TimelineWebviewView extends WebviewViewBase<State> {
292296 title : title ,
293297 uri : current . uri . toString ( ) ,
294298 dateFormat : dateFormat ,
299+ shortDateFormat : shortDateFormat ,
295300 access : access ,
296301 } ;
297302 }
0 commit comments