2021-08-13 Fred Gleason <fredg@paravelsystems.com>

* Replaced hard-coded date/time formats with standard formats in
	all reports and GUI modules.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-08-13 10:02:26 -04:00
parent a7ea971910
commit 338465531c
25 changed files with 128 additions and 105 deletions

View File

@@ -354,6 +354,12 @@ QString RDCoreApplication::shortDateString(const QDate &date) const
}
QString RDCoreApplication::shortDateTimeString(const QDateTime &dt) const
{
return shortDateString(dt.date())+" "+timeString(dt.time());
}
QString RDCoreApplication::timeString(const QTime &time,bool padded) const
{
if(app_show_twelve_hour_time) {
@@ -368,19 +374,13 @@ QString RDCoreApplication::timeString(const QTime &time,bool padded) 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);
return time.toString(RD_TWELVE_HOUR_TENTHS_PADDED_FORMAT);
}
ret=time.toString(RD_TWELVE_HOUR_TENTHS_FORMAT);
return time.toString(RD_TWELVE_HOUR_TENTHS_FORMAT);
}
else {
ret=time.toString(RD_TWENTYFOUR_HOUR_TENTHS_FORMAT);
}
return ret;
return time.toString(RD_TWENTYFOUR_HOUR_TENTHS_FORMAT);
}