[books] Think I had DST logic messed up

This commit is contained in:
2025-11-05 09:58:08 -05:00
parent c49f6a1740
commit 7b3692ef7b

View File

@ -286,11 +286,11 @@ def build_scrobbles_from_book_map(
) )
# Adjust for Daylight Saving Time # Adjust for Daylight Saving Time
if timestamp.dst() == timedelta( #if timestamp.dst() == timedelta(
0 # 0
) or stop_timestamp.dst() == timedelta(0): #) or stop_timestamp.dst() == timedelta(0):
timestamp = timestamp - timedelta(hours=1) # timestamp = timestamp - timedelta(hours=1)
stop_timestamp = stop_timestamp - timedelta(hours=1) # stop_timestamp = stop_timestamp - timedelta(hours=1)
scrobble = Scrobble.objects.filter( scrobble = Scrobble.objects.filter(
timestamp=timestamp, timestamp=timestamp,