mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 18:43:38 +01:00
Time zone fix for epoch time calculation for SQL based date queries (#542).
This commit is contained in:
parent
c196f20dfc
commit
fbe3e1a45e
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ class FalseQuery(Query):
|
|||
|
||||
|
||||
def _to_epoch_time(date):
|
||||
epoch = datetime.utcfromtimestamp(0)
|
||||
epoch = datetime.fromtimestamp(0)
|
||||
return int((date - epoch).total_seconds())
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue