Skip to content

Commit

Permalink
Fix minutes and hours not being displayed properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
divark committed Jun 6, 2024
1 parent 5e17ea2 commit f77c3eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
- This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
- This project uses [ISO Standard](https://www.iso.org/iso-8601-date-and-time-format.html) date formatting

## [1.0.1]
### Fixed
- Minutes and Hours now displaying properly.

## [1.0.0] - 2024-05-16
### Added
- Wayland support.
Expand Down Expand Up @@ -81,6 +85,8 @@
- Unit Testing in GitHub Workflow files, temporarily.

[Unreleased]: https://github.com/divark/narrative-director-rs/blob/main/CHANGELOG.md
[1.0.1]: https://github.com/divark/narrative-director-rs/releases/tag/v1.0.1
[1.0.0]: https://github.com/divark/narrative-director-rs/releases/tag/v1.0.0
[0.1.2]: https://github.com/divark/narrative-director-rs/releases/tag/v0.1.2
[0.1.1]: https://github.com/divark/narrative-director-rs/releases/tag/v0.1.1
[0.1.0]: https://github.com/divark/narrative-director-rs/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion src/media/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct PlaybackWidget {
/// Converts seconds to hours:minutes:seconds format
fn to_hh_mm_ss_str(secs: usize) -> String {
let seconds = secs % 60;
let minutes = (seconds / 60) % 60;
let minutes = (secs / 60) % 60;
let hours = minutes / 60;

format!("{hours:02}:{minutes:02}:{seconds:02}")
Expand Down

0 comments on commit f77c3eb

Please sign in to comment.