mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed "Preset <date-attr> = 0"
SVN revision: 1777
This commit is contained in:
parent
d3aee3f3e6
commit
c1befde0c5
12
src/elogd.c
12
src/elogd.c
@ -9388,11 +9388,13 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
||||
year = month = day = 0;
|
||||
if (attrib[index][0]) {
|
||||
ltime = atoi(attrib[index]);
|
||||
pts = localtime(<ime);
|
||||
assert(pts);
|
||||
year = pts->tm_year + 1900;
|
||||
month = pts->tm_mon + 1;
|
||||
day = pts->tm_mday;
|
||||
if (ltime > 0) {
|
||||
pts = localtime(<ime);
|
||||
assert(pts);
|
||||
year = pts->tm_year + 1900;
|
||||
month = pts->tm_mon + 1;
|
||||
day = pts->tm_mday;
|
||||
}
|
||||
}
|
||||
|
||||
rsprintf("<td%s class=\"attribvalue\">", title);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user