Skip to content

Conversation

@auouymous
Copy link
Member

Using datetime converts the seconds value into date and time components. A value of 86400 generates a 00:00 time on the 2nd of January 1970.

The new code properly increments the hour field to 24 and beyond instead of wrapping around to zero. The left-most zero for hour or minute field is now dropped to make episode times easier to read.

@tpikonen
Copy link
Contributor

Where do you need time strings where the hour is > 23?

Using datetime converts the seconds value into date and time components.
A value of 86400 generates a 00:00 time on the 2nd of January 1970.

The new code properly increments the hour field to 24 and beyond instead
of wrapping around to zero.
@tpikonen
Copy link
Contributor

LGTM.

@auouymous auouymous merged commit a75a2e4 into gpodder:master Sep 26, 2022
@auouymous auouymous deleted the fix-format-time branch September 26, 2022 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants