mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: use the short date format
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d74ef97228
commit
8bee7e6172
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ QString DiveObjectHelper::date() const
|
||||||
{
|
{
|
||||||
QDateTime localTime = QDateTime::fromMSecsSinceEpoch(1000*m_dive->when, Qt::UTC);
|
QDateTime localTime = QDateTime::fromMSecsSinceEpoch(1000*m_dive->when, Qt::UTC);
|
||||||
localTime.setTimeSpec(Qt::UTC);
|
localTime.setTimeSpec(Qt::UTC);
|
||||||
return localTime.date().toString(prefs.date_format);
|
return localTime.date().toString(prefs.date_format_short);
|
||||||
}
|
}
|
||||||
|
|
||||||
timestamp_t DiveObjectHelper::timestamp() const
|
timestamp_t DiveObjectHelper::timestamp() const
|
||||||
|
|
Loading…
Add table
Reference in a new issue