Project

General

Profile

« Previous | Next » 

Revision 7858

Added by Jing Tao over 11 years ago

In determining the time arrange, the equality was removed.

View differences:

metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/IndexGenerator.java
432 432
                        if(since == null && until == null) {
433 433
                            correctTimeRange = true;
434 434
                        } else if (since != null && until == null) {
435
                            if(sysDate.getTime() >= since.getTime()) {
435
                            if(sysDate.getTime() > since.getTime()) {
436 436
                                correctTimeRange = true;
437 437
                            }
438 438
                        } else if (since == null && until != null) {
439
                            if(sysDate.getTime() <= until.getTime()) {
439
                            if(sysDate.getTime() < until.getTime()) {
440 440
                                correctTimeRange = true;
441 441
                            }
442 442
                        } else if (since != null && until != null) {
443
                            if(sysDate.getTime() >= since.getTime() && sysDate.getTime() <= until.getTime()) {
443
                            if(sysDate.getTime() > since.getTime() && sysDate.getTime() < until.getTime()) {
444 444
                                correctTimeRange = true;
445 445
                            }
446 446
                        }

Also available in: Unified diff