feat: set log timezone, closes #56

Implement a CLI arg, and config file setting, for changing the timezone of the Docker logs timestamp
This commit is contained in:
Jack Wills
2025-02-21 11:03:19 +00:00
parent 8305e6fda6
commit 17a5e7a258
27 changed files with 1122 additions and 163 deletions
+4 -2
View File
@@ -87,10 +87,10 @@ fn handler_init(
) {
tokio::spawn(input_handler::InputHandler::start(
Arc::clone(app_data),
input_rx,
docker_sx.clone(),
Arc::clone(gui_state),
Arc::clone(is_running),
input_rx,
));
}
@@ -159,7 +159,7 @@ mod tests {
};
/// Default test config, has timestamps turned off
pub const fn gen_config() -> Config {
pub fn gen_config() -> Config {
Config {
color_logs: false,
docker_interval: 1000,
@@ -172,8 +172,10 @@ mod tests {
show_self: false,
app_colors: AppColors::new(),
keymap: Keymap::new(),
timestamp_format: "HH:MM:SS.NNNNN dd-mm-yyyy".to_owned(),
show_timestamp: false,
use_cli: false,
timezone: None,
}
}