richardlehane / siegfried

signature-based file format identification
http://www.itforarchivists.com/siegfried
Apache License 2.0
224 stars 30 forks source link

option to print file mod times in UTC rather than local time #136

Closed richardlehane closed 4 years ago

richardlehane commented 4 years ago

Currently sf uses local time with RFC3339 "2006-01-02T15:04:05Z07:00" for printing file modified times.

Request to print those times in UTC time instead: https://twitter.com/despens/status/1216714415527120898

This may be thru a -utc flag in sf

richardlehane commented 4 years ago

OK, this is implemented now on develop branch.

Normal behaviour for file modified is: 2018-04-17T21:47:18+02:00 With new -utc flag you get: 2018-04-17T19:47:18Z

Hope that's what is expected?

richardlehane commented 4 years ago

sf 1.8.0 has a new -utc flag for this. If you want this for default behaviour add that to your conf (with sf -utc -setconf)