query-creator: Time unit improvements.
Submitted by gno..@..il.com
Link to original bug (#774767)
Description
Addresses the following 2 issues:
- Limit time units from epoc ( 1970 ), rather than MAX_INT, since rhythmdb query evaluation starts from epoc time. Without this, the rhythmdb returns empty results for time < epoch ( which will confuse the user ).
Eg.
Time of last play in last 2000 weeks will return results. Time of last play in last 3000 weeks will NOT return results.
as there are only 2446 weeks since epoch ( as of this week ).
- Add year unit to query creation.
Version: HEAD