Fixed date sorting problem before Sept. 9th, 2001 (seconds of epoche overhung 999'999'999)

This commit is contained in:
2014-09-22 14:36:59 +02:00
parent 09a357d2a4
commit 96dad2d8d6
+2 -2
View File
@@ -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])) {
strlcat(msg_list[index].string, " ", 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]);
numeric = TRUE;
} 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]) {
for (i = 0; i < lbs->n_attr; 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;
msg_list[index].number = atoi(attrib[i]);
} else {