mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Show localized date on edit form
SVN revision: 2098
This commit is contained in:
parent
ad86c8f92b
commit
3043cdbc3a
@ -9776,10 +9776,9 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
assert(pts);
|
assert(pts);
|
||||||
my_strftime(str, sizeof(str), format, pts);
|
my_strftime(str, sizeof(str), format, pts);
|
||||||
} else {
|
} else {
|
||||||
if (getcfg(lbs->name, "Time format", format, sizeof(format)))
|
if (!getcfg(lbs->name, "Time format", format, sizeof(format)))
|
||||||
my_strftime(str, sizeof(str), format, localtime(&now));
|
strcpy(format, DEFAULT_TIME_FORMAT);
|
||||||
else
|
my_strftime(str, sizeof(str), format, localtime(&now));
|
||||||
strcpy(str, ctime(&now));
|
|
||||||
strcpy(date, ctime(&now));
|
strcpy(date, ctime(&now));
|
||||||
date[24] = 0;
|
date[24] = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user