When in a different timezone to the UK, spent today can be incorrect.
In Australia spent today showed yesterday’s spending until after midnight in the UK, when it reset to zero. The feed correctly showed the transactions as yesterday (local time).
Please see the attached screenshot for an example of this.
I noticed the same thing while I was in Japan. My phone was set to auto detect region and had updated itself to Japanese time. The spent today figure is available via the API, so I suspect the app pulls the figure in online rather than calculating it.
It’s probably that the server side software just works in UK time.
Now that someone has mentioned this, it actually makes more sense to me to calculate the daily total on the device itself since the inbuilt libraries no doubt handle time zones for you.
Suspect you are correct about how it’s working currently.
Guessing if you travel west from the UK the spent today amount could end up losing some of local today’s transaction amounts.
It would definitely make more sense to calculate this locally with respect to the local timezone, or pass local timezone as a parameter to the backend and take it into account in the calculations.
I’d think working it out locally would make the most sense tbh. Though it could get tricky on the day you travel, as “today” can become a fluid concept when you cross enough time zones.