mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed display of locked datetime attributes
SVN revision: 2010
This commit is contained in:
parent
58ae44fede
commit
8245a2b958
13
src/elogd.c
13
src/elogd.c
@ -9893,6 +9893,19 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
||||
else
|
||||
my_strftime(str, sizeof(str), format, pts);
|
||||
|
||||
} else if (attr_flags[index] & AF_DATETIME) {
|
||||
|
||||
if (!getcfg(lbs->name, "Time format", format, sizeof(format)))
|
||||
strcpy(format, DEFAULT_TIME_FORMAT);
|
||||
|
||||
ltime = atoi(attrib[index]);
|
||||
pts = localtime(<ime);
|
||||
assert(pts);
|
||||
if (ltime == 0)
|
||||
strcpy(str, "-");
|
||||
else
|
||||
my_strftime(str, sizeof(str), format, pts);
|
||||
|
||||
} else
|
||||
strlcpy(str, attrib[index], sizeof(str));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user