Print create date in planner output - help needed

2017-03-29 Thread Stefan Fuchs
Hi All, I would like to add this to planner.c to print the date and Subsurface version to the diveplan: char date_planned[100]; time_t now = time(NULL); struct tm *t = localtime(&now); strftime(date_planned, sizeof(date_planned)-1, "%d.%m.%Y", t); len += snprintf(buffer + le

Re: Print create date in planner output - help needed

2017-03-30 Thread Stefan Fuchs
Hallo Robert, Am 30.03.2017 um 10:56 schrieb Robert Helling: > Hi, > >> On 30.03.2017, at 08:06, Stefan Fuchs > > wrote: >> >> There is one issue: >> I would like to use the date format as defined in >> "prefs.date_format_short". But the Qt syntax of this is not >> compatible