[mythtv-commits] [MythTV/mythtv] c16684: Conversion of negative time values to string

kmdewaal noreply at github.com
Fri Mar 17 22:22:57 UTC 2023

  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: c166849536ca2785184b5b6a20aec6bfd3b7a099
  Author: Klaas de Waal <klaas at kldo.nl>
  Date:   2023-03-17 (Fri, 17 Mar 2023)

  Changed paths:
    M mythtv/libs/libmythbase/mythdate.cpp

  Log Message:
  Conversion of negative time values to string

When converting a negative time value with format string "m:ss" there is
a minus sign before the minutes and also a minus sign before the seconds.
The implementation apparently only supports positive time interval values.
The implementation is now extended to support negative time interval values
by converting the absolute time value to string and then prepending a minus
sign when the time value is negative.
The implementation was introduced in commit 65b9c73adacabe38877c3e18af5d4a0545799c1
"Better fix for MythDate::formatTime to handle overflows.", committed on Mar 16, 2022.

Refs #733

More information about the mythtv-commits mailing list