I have users in multiple time zones. I need to add the ability to pull out data for a view based on when that user last used the app and whatโs been added or changed since then.
My question is, should I be using UTCNOW() for the columns I am using for these calculations so the time is consistent across all users? It seems like if I used NOW() there would be inconsistencies.
So long as youโve got localization setup properly, NOW() should work just fine.
Iโll trust you on this one, Steve. I have trouble wrapping my head around NOW() and time zones and time math.
As do Iโฆ
That makes me feel better! Thanks Steve.
User | Count |
---|---|
16 | |
13 | |
8 | |
7 | |
4 |