mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +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);
|
||||
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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user