mirror of
https://github.com/beetbox/beets.git
synced 2026-05-21 20:44:35 -04:00
Time zone fix for epoch time calculation for SQL based date queries (#542).
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user