mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Added date check
SVN revision: 1139
This commit is contained in:
parent
ec9fa88f3c
commit
fff6555663
@ -6,6 +6,9 @@
|
||||
Contents: Web server program for Electronic Logbook ELOG
|
||||
|
||||
$Log$
|
||||
Revision 1.517 2004/12/05 11:52:53 midas
|
||||
Added date check
|
||||
|
||||
Revision 1.516 2004/12/05 11:40:52 midas
|
||||
Implemented 'sort attribute'
|
||||
|
||||
@ -16329,6 +16332,11 @@ void submit_elog(LOGBOOK * lbs)
|
||||
tms.tm_hour = 12;
|
||||
|
||||
ltime = mktime(&tms);
|
||||
|
||||
if (ltime == -1) {
|
||||
show_error(loc("Date must be between 1970 and 2037"));
|
||||
return;
|
||||
}
|
||||
sprintf(attrib[i], "%d", ltime);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user