Skip to content

Commit

Permalink
Revert "RhetTbull#1778 Make sure operation on selected pics only if n…
Browse files Browse the repository at this point in the history
…either --uuid nor --uuid-from-file are speci"

This reverts commit 3cff021.
  • Loading branch information
oPromessa committed Jan 16, 2025
1 parent 3cff021 commit c390332
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions osxphotos/photodates.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,19 +209,11 @@ def update_photo_time_for_new_timezone(
old_timezone_offset = PhotoTimeZone(library_path=library_path).get_timezone(photo)[
0
]
for k in PhotoTimeZone(library_path=library_path).get_timezone(photo):
verbose(f"DEBUG: Old Photo timezone: {k}")

delta = old_timezone_offset - new_timezone.offset

verbose(f"DEBUG: Delta: {delta} old tz: {old_timezone_offset} new tz: {new_timezone.offset}")

photo_date = photo.date
new_photo_date = update_datetime(
dt=photo_date, time_delta=datetime.timedelta(seconds=delta)
)
verbose(f"DEBUG: Photo date: {photo_date} new photo date: {new_photo_date}")

filename = photo.filename
uuid = photo.uuid
if photo_date != new_photo_date:
Expand Down

0 comments on commit c390332

Please sign in to comment.