Skip to content

Commit

Permalink
Transpose sunset and sunrise time in daily forecast box
Browse files Browse the repository at this point in the history
Refs: #16
  • Loading branch information
orontee committed Nov 13, 2024
1 parent 753066f commit 9483c1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### Changed

- Sunrise and sunset times have been transposed to match the
presentation in new daily conditions details
[#16](https://github.com/orontee/taranis/issues/16)

### Removed

## [1.9.0 - 2024-07-09]
Expand Down
2 changes: 1 addition & 1 deletion src/dailyforecastbox.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void DailyForecastBox::generate_table_content() {
this->icons->get(forecast.weather_icon_name);
} else if (column_index == DailyForecastBox::SunHoursColumn) {
column_content[row_index] = std::pair<std::string, std::string>{
format_time(forecast.sunset), format_time(forecast.sunrise)};
format_time(forecast.sunrise), format_time(forecast.sunset)};
} else if (column_index == DailyForecastBox::MorningTemperatureColumn) {
column_content[row_index] =
units.format_temperature(forecast.temperature_morning);
Expand Down

0 comments on commit 9483c1f

Please sign in to comment.