Skip to content

Commit

Permalink
Convert created, updated to localtime, update CHANGELOG.md
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Wall <bob.wall@ironcorelabs.com>
  • Loading branch information
BobWall23 committed Nov 16, 2022
1 parent 0cfcb67 commit 32e7069
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.0.2

+ Resolve issue running binary when it is `cargo install`d. Previously returned an error 'Must be run on a system that has an OS time library.' when the group info and user device-list commands were invoked.

## 1.0.1

+ Changed processing of the `-out` parameter so it could precede the list of files to be processed (for file encrypt and decrypt operations).

## 1.0.0

+ **Breaking Change**: Moved from a Node application to a Rust binary. Initial package manager support exists for `cargo install`, homebrew, arch linux, nix, chocolatey, and ubuntu. Instructions to compile from source are in the README if your platform doesn't have package manager support or a prebuilt binary.
Expand Down
4 changes: 2 additions & 2 deletions src/file/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ fn build_result_table(
})
.collect::<Vec<_>>()
.join("\n"),
metadata.created(),
metadata.last_updated()
metadata.created().to_offset(util::local_offset()).format(&util::time_format()).unwrap(),
metadata.last_updated().to_offset(util::local_offset()).format(&util::time_format()).unwrap()
]);
}
table
Expand Down
10 changes: 8 additions & 2 deletions src/group/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,14 @@ pub fn list_groups(sdk: &BlockingIronOxide) -> Result<(), String> {
is_admin,
is_member,
cell!(Fw -> group.id().id()),
cell!(Fw -> group.created()),
cell!(Fw -> group.last_updated()),
cell!(Fw -> group.created().
to_offset(util::local_offset()).
format(&util::time_format()).
unwrap()),
cell!(Fw -> group.last_updated().
to_offset(util::local_offset()).
format(&util::time_format()).
unwrap())
]));
}

Expand Down
6 changes: 3 additions & 3 deletions src/group_maps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use prettytable::{color, Attr, Cell, Row};
use std::collections::HashMap;
use yansi::Paint;

use crate::util::println_paint;
use crate::util::{println_paint, local_offset, time_format};

type GroupsByName = HashMap<GroupName, Vec<GroupMetaResult>>;
type GroupsById = HashMap<GroupId, GroupMetaResult>;
Expand Down Expand Up @@ -114,8 +114,8 @@ fn group_choice_table(groups: &[GroupMetaResult]) -> prettytable::Table {
cell!(Fw -> group.id().id()),
is_admin,
is_member,
cell!(Fw -> group.created()),
cell!(Fw -> group.last_updated()),
cell!(Fw -> group.created().to_offset(local_offset()).format(&time_format()).unwrap()),
cell!(Fw -> group.last_updated().to_offset(local_offset()).format(&time_format()).unwrap()),
]));
}

Expand Down

0 comments on commit 32e7069

Please sign in to comment.