Skip to content

Instantly share code, notes, and snippets.

View Favo02's full-sized avatar
🤠
failing exams

Luca Favini Favo02

🤠
failing exams
View GitHub Profile
@okwes
okwes / immich_date_shift.py
Created October 29, 2024 04:15
Immich Bulk Date Shift. The Immich web ui only supports setting one time for many assets, this code allows the date of many assets to be shifted by x days, seconds etc. This will shift the date/time for all photos in a given album
# under CC0/Public Domain. Do as you like. NO WARRANTY
# make venv, pip install requests python-dateutil
# Replace the 3 variables at the top and adjust the function call for adjust_iso8601_time() to suit your desired time change for all photos in the album you give.
# Better code may exist but this is a quick fix to a problem I had
import requests
from datetime import datetime, timedelta
from zoneinfo import ZoneInfo
import json