mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed date sorting problem before Sept. 9th, 2001 (seconds of epoche overhung 999'999'999)
This commit is contained in:
parent
09a357d2a4
commit
96dad2d8d6
@ -20092,7 +20092,7 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
if (strieq(sort_attr[i], attr_list[j])) {
|
if (strieq(sort_attr[i], attr_list[j])) {
|
||||||
strlcat(msg_list[index].string, " ", sizeof(msg_list[index].string));
|
strlcat(msg_list[index].string, " ", sizeof(msg_list[index].string));
|
||||||
strlcat(msg_list[index].string, attrib[j], sizeof(msg_list[index].string));
|
strlcat(msg_list[index].string, attrib[j], sizeof(msg_list[index].string));
|
||||||
if (attr_flags[i] & AF_NUMERIC) {
|
if (attr_flags[i] & (AF_NUMERIC | AF_DATETIME | AF_DATE)) {
|
||||||
msg_list[index].number = atoi(attrib[j]);
|
msg_list[index].number = atoi(attrib[j]);
|
||||||
numeric = TRUE;
|
numeric = TRUE;
|
||||||
} else
|
} else
|
||||||
@ -20120,7 +20120,7 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
if (sort_item[0]) {
|
if (sort_item[0]) {
|
||||||
for (i = 0; i < lbs->n_attr; i++) {
|
for (i = 0; i < lbs->n_attr; i++) {
|
||||||
if (strieq(sort_item, attr_list[i])) {
|
if (strieq(sort_item, attr_list[i])) {
|
||||||
if (attr_flags[i] & AF_NUMERIC) {
|
if (attr_flags[i] & (AF_NUMERIC | AF_DATETIME | AF_DATE)) {
|
||||||
numeric = TRUE;
|
numeric = TRUE;
|
||||||
msg_list[index].number = atoi(attrib[i]);
|
msg_list[index].number = atoi(attrib[i]);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user