Include full year for trip on divelist

Having only the last 2 digits of the year is somewhat confusing as one
can easily think that to be the day. Thus it is more clear to use full
year for the trip header.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2016-08-08 03:11:06 +03:00 committed by Dirk Hohndel
parent b5aa6b496f
commit 38a2db05c0

View file

@ -958,7 +958,7 @@ QString get_trip_date_string(timestamp_t when, int nr, bool getday)
if (getday) {
ret = localTime.date().toString(prefs.date_format) + suffix;
} else {
ret = localTime.date().toString("MMM yy") + suffix;
ret = localTime.date().toString("MMM yyyy") + suffix;
}
return ret;