mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-05 08:10:21 +01:00
2021-08-12 Fred Gleason <fredg@paravelsystems.com>
* Modified reports in rdlogmanager(1) to use standard date/time formats. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -354,21 +354,26 @@ QString RDCoreApplication::shortDateString(const QDate &date) const
|
||||
}
|
||||
|
||||
|
||||
QString RDCoreApplication::timeString(const QTime &time) const
|
||||
QString RDCoreApplication::timeString(const QTime &time,bool padded) const
|
||||
{
|
||||
if(app_show_twelve_hour_time) {
|
||||
// return time.toString("h:mm:ss ap");
|
||||
if(padded) {
|
||||
return time.toString(RD_TWELVE_HOUR_PADDED_FORMAT);
|
||||
}
|
||||
return time.toString(RD_TWELVE_HOUR_FORMAT);
|
||||
}
|
||||
return time.toString(RD_TWENTYFOUR_HOUR_FORMAT);
|
||||
}
|
||||
|
||||
|
||||
QString RDCoreApplication::tenthsTimeString(const QTime &time) const
|
||||
QString RDCoreApplication::tenthsTimeString(const QTime &time,bool padded) const
|
||||
{
|
||||
QString ret;
|
||||
|
||||
if(app_show_twelve_hour_time) {
|
||||
if(padded) {
|
||||
ret=time.toString(RD_TWELVE_HOUR_TENTHS_PADDED_FORMAT);
|
||||
}
|
||||
ret=time.toString(RD_TWELVE_HOUR_TENTHS_FORMAT);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user