aboutsummaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index e337a5ddd..6abdd83ae 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -419,6 +419,12 @@ QString get_short_dive_date_string(timestamp_t when)
return loc.toString(ts.toUTC(), shortDateFormat + " " + timeFormat);
}
+const char *get_dive_date_c_string(timestamp_t when)
+{
+ QString text = get_dive_date_string(when);
+ return strdup(text.toUtf8().data());
+}
+
QString get_trip_date_string(timestamp_t when, int nr)
{
struct tm tm;