Skip to content

Commit 2488d3a

Browse files
fixed time format v1.11.3
1 parent d5b220f commit 2488d3a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.11.3
4+
### Fixed
5+
- fixed "time data does not match format '%Y-%m-%dT%H:%M:%S.%fZ'
6+
37
## 1.11.2
48
### Changed
59
- redirect URI changed to 127.0.0.1 from localhost - <b>you need to update it in Spotify for Developers to `http://127.0.0.1:23918`</b> ([that's why](https://developer.spotify.com/blog/2025-02-12-increasing-the-security-requirements-for-integrating-with-spotify))

spotifyscheduler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from tkinter.messagebox import askyesno
2525
import random
2626

27-
VER="1.11.2"
27+
VER="1.11.3"
2828
CONFIG_FILE="config.json"
2929
SCHEDULE_FILE="schedule.txt"
3030
DEFAULT_SCHEDULE_FILE='default-schedule.txt'
@@ -282,8 +282,8 @@ 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 = item['played_at']
286-
utc_time = datetime.strptime(played_at, "%Y-%m-%dT%H:%M:%S.%fZ")
285+
played_at = str(item['played_at']).split('.')[0]
286+
utc_time = datetime.strptime(played_at, "%Y-%m-%dT%H:%M:%S")
287287

288288
local_now = datetime.now()
289289
local_tz = local_now.astimezone().tzinfo

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ StringFileInfo(
3636
StringStruct(u'LegalCopyright', u'MIT License - (c) 2025 Szymon Andrzejewski'),
3737
StringStruct(u'OriginalFilename', u'spotify-scheduler.exe'),
3838
StringStruct(u'ProductName', u'Spotify Scheduler'),
39-
StringStruct(u'ProductVersion', u'1.11.2')])
39+
StringStruct(u'ProductVersion', u'1.11.3')])
4040
]),
4141
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
4242
]

0 commit comments

Comments
 (0)