I'm working on a module that grabs Order data from the orders table. I've used the greater than/less than technique but now I am using "between." I get the same results for either. The condition is for the "orderdate" field. It's the system time of the order.
The results I receive of my date filtering condition is close to what I expect. The start and end date are specific 10 digit representation of the dates in question. The start date system time works perfectly as expected. The end date is where the results are dubious. If I use the end date as July 31, 2019, converted to system time using mktime() , I am receiving order records through August 2, 2019. Some months have been fewer or more days past the input end date. It doesn't appear to be a time zone issue, but I haven't ruled that out.
I am not sure what is happening. The condition being evaluated seems simple, while it's a system time, they are just numbers in regards to the data input and system function. If I am not recalling incorrectly, when I use Order Processing screen with the exact date filters I am seeing similar dubious results where the results are more records than expected.
Maybe I am wondering if I should use a system start date and the number of days equivalent in seconds instead?
Scott
The results I receive of my date filtering condition is close to what I expect. The start and end date are specific 10 digit representation of the dates in question. The start date system time works perfectly as expected. The end date is where the results are dubious. If I use the end date as July 31, 2019, converted to system time using mktime() , I am receiving order records through August 2, 2019. Some months have been fewer or more days past the input end date. It doesn't appear to be a time zone issue, but I haven't ruled that out.
I am not sure what is happening. The condition being evaluated seems simple, while it's a system time, they are just numbers in regards to the data input and system function. If I am not recalling incorrectly, when I use Order Processing screen with the exact date filters I am seeing similar dubious results where the results are more records than expected.
Maybe I am wondering if I should use a system start date and the number of days equivalent in seconds instead?
Scott
Comment