mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +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
|
else
|
||||||
my_strftime(str, sizeof(str), format, pts);
|
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
|
} else
|
||||||
strlcpy(str, attrib[index], sizeof(str));
|
strlcpy(str, attrib[index], sizeof(str));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user