Skip to content

Commit

Permalink
update "-snapshot-timemachine" format
Browse files Browse the repository at this point in the history
  - use the file timestamp instead of the snapshot timestamp
  - change the timestamp format

fixes #1
  • Loading branch information
j-keck committed Jul 1, 2020
1 parent 837e2fd commit 134aa38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func main() {
if cliCfg.snapshotTimemachineOutput {
for idx, v := range scanResult.FileVersions {
fmt.Printf("%d\t%s\t%s\t%s\n",
idx, v.Snapshot.Name, v.Backup.Path, v.Snapshot.Created.Format("Jan 2 15:04"))
idx, v.Snapshot.Name, v.Backup.Path, v.Backup.MTime.Format("Mon, 02 Jan 2006 15:04:05 -0700"))
}
} else if !cliCfg.scriptingOutput {

Expand Down

0 comments on commit 134aa38

Please sign in to comment.