<@U0B8NBYNN>’s changes just now (<https://github...
# confetti
j
@Marcello Galhardo’s changes just now (https://github.com/joreilly/Confetti/pull/585) have just been published to play store (internal test)....be good to get as much testing as possible before we potentially promote.
@Marcello Galhardo actually, just testing a bit more and doesn't seem to start at anything earlier than 10:40am for some reason
maybe something related to how time is being faked locally....
m
It seems to be working for me. 🤔
j
are you changing time locally on phone?
m
I’m changing the
DateService.now
return. Let me try with the phone hour.
j
so, what I think I was seeing here is that it's applied to wrong date?
hmm or maybe not
m
The problem is that my previous calculation “under certain conditions” was collecting the wrong “closest hour”.
The complexity bit here is that: 1. We need to get the “closest hour” to the current hour; 2. Each sticky header is also an item and have an index.
So I need to get the closest hour item, taking into account these index are separated per hour and each “key” is also an item (+1) as it is used as a sticky header.
Here is from my tests:
j
nice
and you're seeing it applied to correct date....thought I was seeing issue where it was applied to wrong date?
or maybe related to same issue
m
Hm, what date issue?
j
let me test again and see for sur
m
I found a bug, but it is because I’m not considering out-of-the-scope dates. I will do yet another PR.
(For example, 11:45 on Wednesday, will open Thursday 11:45).
j
oh maybe that was it....think I changed date to April 12th at some point
m
I will fix in the same PR, please don’t merge it yet.
j
k
let me know when it's good to go and i'll publish an update
m
k
I tried here and it seems good. Let me know if you find any issue @John O'Reilly
j
this was using version from play store?
j
so, I have time set to 13th April 11am.....it shows 11:15 session at top....but seems to for both 13th and 14th
m
What do you mean with "for both"?
It opens on the right date and time, and you change to the previous date and it keeps the hour?
j
yeah, I see 11;15 session at top for 13th and 14th
m
Ah, that was kind of by design but I can change.
j
yeah, I think you'd expect to see it show earliest session when you switch to 14th....wdyt?
m