mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-06 03:05:25 +00:00
fix: use utc for time parse in sqlite
This commit is contained in:
parent
782e813826
commit
6308b95784
@ -443,7 +443,7 @@ def full_text_search(
|
||||
sql_query += f" AND entities.library_id IN ({library_ids_str})"
|
||||
if start is not None and end is not None:
|
||||
sql_query += (
|
||||
" AND strftime('%s', entities.file_created_at) BETWEEN :start AND :end"
|
||||
" AND strftime('%s', entities.file_created_at, 'utc') BETWEEN :start AND :end"
|
||||
)
|
||||
params["start"] = str(start)
|
||||
params["end"] = str(end)
|
||||
|
Loading…
x
Reference in New Issue
Block a user