Show localized date on edit form

SVN revision: 2098
This commit is contained in:
2008-04-09 20:12:05 +00:00
parent ad86c8f92b
commit 3043cdbc3a
+3 -4
View File
@@ -9776,10 +9776,9 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
assert(pts);
my_strftime(str, sizeof(str), format, pts);
} else {
if (getcfg(lbs->name, "Time format", format, sizeof(format)))
my_strftime(str, sizeof(str), format, localtime(&now));
else
strcpy(str, ctime(&now));
if (!getcfg(lbs->name, "Time format", format, sizeof(format)))
strcpy(format, DEFAULT_TIME_FORMAT);
my_strftime(str, sizeof(str), format, localtime(&now));
strcpy(date, ctime(&now));
date[24] = 0;
}