From 7d767ff0a357f1f06872852074a4a1f0ef82e287 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 28 Jun 2024 18:57:29 +0300 Subject: [PATCH] Use a human-readable date format for the `now` command's label (#13632) Before: ![image](https://github.com/zed-industries/zed/assets/2690773/063887fb-1a28-4922-afd1-b2dc4117a03d) After: Screenshot 2024-06-28 at 18 52 08 Screenshot 2024-06-28 at 18 52 10 Release Notes: - N/A --- crates/assistant/src/slash_command/now_command.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/assistant/src/slash_command/now_command.rs b/crates/assistant/src/slash_command/now_command.rs index 43e5daa05b5788570604b51c4057a54565471941..4275a9efef215f944dd84a5bb6bea4180ca1b700 100644 --- a/crates/assistant/src/slash_command/now_command.rs +++ b/crates/assistant/src/slash_command/now_command.rs @@ -46,7 +46,7 @@ impl SlashCommand for NowSlashCommand { _cx: &mut WindowContext, ) -> Task> { let now = Local::now(); - let text = format!("Today is {now}.", now = now.to_rfc3339()); + let text = format!("Today is {now}.", now = now.to_rfc2822()); let range = 0..text.len(); Task::ready(Ok(SlashCommandOutput { @@ -54,7 +54,7 @@ impl SlashCommand for NowSlashCommand { sections: vec![SlashCommandOutputSection { range, icon: IconName::CountdownTimer, - label: now.to_rfc3339().into(), + label: now.to_rfc2822().into(), }], run_commands_in_text: false, }))