Hey all!
I have a "last_active_day" field on my users data. I want to update that field whenever the user was active for the first time of a new day
My app is global and Im collecting and saving the users' timezones
My issue: for some reason the date is saved differently to the database than the way its presented in the result
I create a "today" variable to show today formatted with the user's timezone
And it shows the right date in the results:
But then in the database I get a different date:
I got a feeling its got something to do with the timezone offset, yet after playing with all sorts of options Im a bit confused
Would appreciate any help
Thanks!