I'm trying to figure out how to do daily rewards for a mobile game I'm working on. I've found some threads like this one (https://www.construct.net/en/forum/construct-3/general-discussion-7/daily-bonus-143684) that suggest using unix time, so I've been messing around with that.
The users there suggested using floor(unixtime/86400) to get the day. Then that can be saved to local storage and a new day could be checked with "is currentdayvariable < floor(unixtime/86400)."
That thread seemed to imply that, if I ran it on the same day, I would always get the same output from floor(unixtime/86400). But so far, it's always been different.
Hopefully that all made sense, I guess what I'm after is finding a way for the game to know that a day has passed.