feat: add ability to select file modified time format (#1536)

This commit is contained in:
lilihx authored and GitHub committed 2021-09-11 14:12:51 +02:00
1 parent 0358e42d2c
commit 0426629a59
6 files changed
+17 -1

No files matched your search

+2
View File
@@ -16,6 +16,7 @@ type UserDefaults struct {
Perm users.Permissions `json:"perm"`
Commands []string `json:"commands"`
HideDotfiles bool `json:"hideDotfiles"`
DateFormat bool `json:"dateFormat"`
}
// Apply applies the default options to a user.
@@ -28,4 +29,5 @@ func (d *UserDefaults) Apply(u *users.User) {
u.Sorting = d.Sorting
u.Commands = d.Commands
u.HideDotfiles = d.HideDotfiles
u.DateFormat = d.DateFormat
}