Events - Today over the years shows pictures from yesterday over the years

Started by Pescheid, June 16, 2023, 11:49:16 AM

Previous topic - Next topic

Pescheid

As I reported already in the other post about Events, the section "Today over the years" shows the events from "yesterday over the years". Example: Today is 16. June, but the "Today over the years" shows all pictures taken on a 15. June in the past 20 years.

Peter

Mario

To which earlier report to you refer?
Please always include a link when you refer to a topic. I cannot keep all posts or emails I process each day in my head and searching the community takes time I'd rather spend for other things.

The issue you mention is caused by a local time to UTC conversion.
To determine files taken today, but 1 to n years ago, IMatch creates a timestamp from today's date and the beginning of the date. For example, for today this would be 2023-06-16 00:00:00.

The problem was that IMatch has to transform this timestamp into UTC to search the database. And for example for Germany which is at UTC +01:00 and currently has daylight active saving time, we end up with a time zone offset of +02:00. This means the starting time stamp was shifted back to 2023-06-15 22:00:00

I have now correct this calculation by accounting for the current time zone offset.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Pescheid

Thanks again for your quick reply and solution of the problem. By the way: The topic I was refering to is here:  https://www.photools.com/community/index.php?msg=93560

Peter

Mario

Quote from: Pescheid on June 17, 2023, 09:36:51 AMBy the way: The topic I was refering to is here:  https://www.photools.com/community/index.php?msg=93560
See. How should I know or remember that? With about 50 emails read and replied to and 50 posts here in the community per day...
Including a link is always a good idea.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook