Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Segments - date relative local timezone #7244
When we store datetime in db we always store it in utc so all comparisons are done in utc. The same thing doesn't work for date fields however. They are always stored as-is and thus we need to compare them in instance-local timezone instead of utc otherwise the comparison doesn't work correctly and the higher is the timezone offset the higher is the chance we make an error.
Steps to reproduce the bug:
Steps to test this PR:
You can use
List deprecations along with the new alternative: