timestamp: fix date and time when adding an hour
1 files changed, 3 insertions(+), 1 deletions(-) M modules/timestamp.py
M modules/timestamp.py => modules/timestamp.py +3 -1
@@ 1,4 1,4 @@ -from datetime import datetime +from datetime import datetime, timedelta def timestamp_str(): @@ 17,5 17,7 @@ def timestamp_str(): else: minute = "00" hour += 1 + hour %= 24 + now += timedelta(hours=1) return now.strftime("%a, %d.%m ") + "{}:{}".format(hour, minute)