Skip to content

Commit 953fa51

Browse files
v1.11.3
1 parent 2488d3a commit 953fa51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spotifyscheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def fetch_last_played_songs():
282282
results = sp.current_user_recently_played(limit=50)
283283
last_played_table.delete(*last_played_table.get_children())
284284
for item in results['items']:
285-
played_at = str(item['played_at']).split('.')[0]
285+
played_at = (str(item['played_at']).split('.')[0]).replace("Z","")
286286
utc_time = datetime.strptime(played_at, "%Y-%m-%dT%H:%M:%S")
287287

288288
local_now = datetime.now()

0 commit comments

Comments
 (0)