Add custom timestamp format as requested in the original HN thread

This commit is contained in:
David Dworken
2022-11-11 17:17:54 -08:00
parent 6f53fdd41e
commit e72ef668ea
7 changed files with 81 additions and 5 deletions

View File

@@ -435,7 +435,7 @@ func buildTableRow(ctx *context.Context, columnNames []string, entry data.Histor
case "CWD":
row = append(row, entry.CurrentWorkingDirectory)
case "Timestamp":
row = append(row, entry.StartTime.Format("Jan 2 2006 15:04:05 MST"))
row = append(row, entry.StartTime.Format(hctx.GetConf(ctx).TimestampFormat))
case "Runtime":
row = append(row, entry.EndTime.Sub(entry.StartTime).Round(time.Millisecond).String())
case "Exit Code":