diff options
-rw-r--r-- | qthelper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index 51a817296..4ccc16d76 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -167,8 +167,8 @@ void Dive::put_date_time() { QDateTime localTime = QDateTime::fromTime_t(dive->when - gettimezoneoffset(displayed_dive.when)); localTime.setTimeSpec(Qt::UTC); - m_date = localTime.date().toString(QString::fromUtf8("MMM dd, yyyy")); - m_time = localTime.time().toString(QString::fromUtf8("hh:mm a")); + m_date = localTime.date().toString(dateFormat); + m_time = localTime.time().toString(timeFormat); } void Dive::put_timestamp() |