[PATCH] Include full year for trip on divelist

Miika Turkia miika.turkia at gmail.com
Sun Aug 7 17:11:06 PDT 2016


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 at gmail.com>
---
 core/qthelper.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index 0135137..17864c9 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -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;
 
-- 
2.5.0



More information about the subsurface mailing list