Skip to content

Commit

Permalink
CLI: add date to hourly and daily forecast title
Browse files Browse the repository at this point in the history
  • Loading branch information
sublipri committed Feb 4, 2024
1 parent 025a049 commit 77e6001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ fn daily(config: &Config, args: &DailyArgs) -> Result<()> {
.daily_forecast
.issue_time
.with_timezone(&Local)
.format("%r");
.format("%r on %a %d %b");

let header = format!("Forecast for {} issued at {}", location, issued);
println!("{header}");
Expand Down Expand Up @@ -421,7 +421,7 @@ fn hourly(config: &Config, args: &HourlyArgs) -> Result<()> {
.hourly_forecast
.issue_time
.with_timezone(&Local)
.format("%r");
.format("%r on %a %d %b");
let title = format!("Hourly forecast for {} issued at {}", location, issue_time);

let todo = location
Expand Down

0 comments on commit 77e6001

Please sign in to comment.