mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-05 08:10:21 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user