From 82c00c2f2aef23351d7c875bf2c346fc59287bd1 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 25 Feb 2020 12:03:39 -0500 Subject: [PATCH] 2020-02-25 Fred Gleason * Fixed a bug in the 'CounterPoint Traffic Reconciliation' report generator in rdlogmanager(1) that caused it to omit the leading '0' from values in the 'Scheduled event length' column. --- ChangeLog | 4 ++++ lib/export_radiotraffic.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 27b51982..8cddd3c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19674,3 +19674,7 @@ 2020-02-24 Fred Gleason * Refactored the 'AR_GET_DISTRO()' autoconf macro to use '/etc/os-release'. +2020-02-25 Fred Gleason + * Fixed a bug in the 'CounterPoint Traffic Reconciliation' report + generator in rdlogmanager(1) that caused it to omit the leading '0' + from values in the 'Scheduled event length' column. diff --git a/lib/export_radiotraffic.cpp b/lib/export_radiotraffic.cpp index 945840b8..db3d0988 100644 --- a/lib/export_radiotraffic.cpp +++ b/lib/export_radiotraffic.cpp @@ -2,7 +2,7 @@ // // Export a Rivendell Report to RadioTraffic.com // -// (C) Copyright 2002-2005,2009,2016-2018 Fred Gleason +// (C) Copyright 2002-2020 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -75,7 +75,7 @@ bool RDReport::ExportRadioTraffic(const QString &filename, *strm << q->value(4).toTime().toString("hh:mm:ss")+" "; *strm << q->value(2).toDateTime().toString("hh:mm:ss")+" "; if(q->value(5).toInt()>0) { - *strm << RDGetTimeLength(q->value(5).toInt(),true,false)+" "; + *strm << QString("0")+RDGetTimeLength(q->value(5).toInt(),true,false)+" "; } else { *strm << "00:00:00 ";