| Conversation on HipChat on Sept. 5:
[4:18 PM] Guillaume Smet: I know that for our big project using Solr, we ended up indexing everything as UTC, even if our timezone was not UTC [4:18 PM] Guillaume Smet: otherwise, you end up having weird behaviors, especially when you round dates [4:18 PM] Sanne Grinovero: yes, I'd do the same [4:19 PM] Sanne Grinovero: also big trouble when it comes to range queries of dates in different zones [4:19 PM] Guillaume Smet: the issue here is that we don't convert the date to UTC before indexing it [4:20 PM] Guillaume Smet: it was an already preexisting behavior when I joined you and I let it this way [4:20 PM] Guillaume Smet: mostly because of when you truncate your date to DAY [4:20 PM] Guillaume Smet: and you end up having the UTC date being on the day before or the day after [4:22 PM] Guillaume Smet: but I agree with Yoann that it might not be a good idea if you're in a multi timezones environment [4:25 PM] Guillaume Smet: that being said, you probably wouldn't use Date in a multi timezone environment
|