…and I just earned the “anniversary” badge this morning. This does feel like a bug to me.
Could it be mitigated by simply changing the timezone of the server to something more applicable for my community? We’re (mainly) in Australia, so processing everything as, say, GMT+8 or GMT+10 would make this all feel less odd.
Since the server doesn’t know a user’s time zone, maybe the easiest fix for this would be to award the badge one day later? For some, that will mean they get it late, but that will probably not be experienced as a bug as much as an early award is.
Another option might be to simply specify in the UI that these times are based on the server’s time zone.
I think that in the context of a heavily localized community you should be allowed to specify the timezone for discourse cakeday. Changing the server timezone is not really something we can do.
This is tricky business and I am not sure how to solve it though, even now that we allow users to specify “timezones”.
If you signed up to a forum in Australia on the 2nd of Jan 2019 at 8am.
Your 1 year anniversary according to “cake day” will be 1st of Jan 2010
When you visit the anniversaries page at 8am on the 2nd of Jan you will see anniversaries from 1st of Jan 2010 instead of the 2nd.
I guess what we are asking here is to use “local” timezones as defined on users to account for stuff.
Your 1 year anniversary should be 1st of Jan 2019 cause your local timezone in your user profile is Australia.
When you visit the anniversaries page on the 2nd you should see the 2nd.
For now I think I support the trivial fix which is, when rendering the anniversaries page, look at the local timezone of the current user and use that date instead of the date of UTC now, for cases where a user is logged on. Should be pretty easy of a change, maybe 2 lines of code.